aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 20:12:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 20:12:13 -0400
commit7f0ef0267e20d62d45d527911a993b1e998f4968 (patch)
treede51abc7da5903f59d83e23937f22420164c9477 /arch/s390
parent862f0012549110d6f2586bf54b52ed4540cbff3a (diff)
parent9307c29524502c21f0e8a6d96d850b2f5bc0bd9a (diff)
Merge branch 'akpm' (updates from Andrew Morton)
Merge first patch-bomb from Andrew Morton: - various misc bits - I'm been patchmonkeying ocfs2 for a while, as Joel and Mark have been distracted. There has been quite a bit of activity. - About half the MM queue - Some backlight bits - Various lib/ updates - checkpatch updates - zillions more little rtc patches - ptrace - signals - exec - procfs - rapidio - nbd - aoe - pps - memstick - tools/testing/selftests updates * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (445 commits) tools/testing/selftests: don't assume the x bit is set on scripts selftests: add .gitignore for kcmp selftests: fix clean target in kcmp Makefile selftests: add .gitignore for vm selftests: add hugetlbfstest self-test: fix make clean selftests: exit 1 on failure kernel/resource.c: remove the unneeded assignment in function __find_resource aio: fix wrong comment in aio_complete() drivers/w1/slaves/w1_ds2408.c: add magic sequence to disable P0 test mode drivers/memstick/host/r592.c: convert to module_pci_driver drivers/memstick/host/jmb38x_ms: convert to module_pci_driver pps-gpio: add device-tree binding and support drivers/pps/clients/pps-gpio.c: convert to module_platform_driver drivers/pps/clients/pps-gpio.c: convert to devm_* helpers drivers/parport/share.c: use kzalloc Documentation/accounting/getdelays.c: avoid strncpy in accounting tool aoe: update internal version number to v83 aoe: update copyright date aoe: perform I/O completions in parallel ...
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/setup.c4
-rw-r--r--arch/s390/mm/init.c24
2 files changed, 6 insertions, 22 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 0a49095104c9..497451ec5e26 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -719,10 +719,6 @@ static void reserve_oldmem(void)
719 } 719 }
720 create_mem_hole(memory_chunk, OLDMEM_BASE, OLDMEM_SIZE); 720 create_mem_hole(memory_chunk, OLDMEM_BASE, OLDMEM_SIZE);
721 create_mem_hole(memory_chunk, OLDMEM_SIZE, real_size - OLDMEM_SIZE); 721 create_mem_hole(memory_chunk, OLDMEM_SIZE, real_size - OLDMEM_SIZE);
722 if (OLDMEM_BASE + OLDMEM_SIZE == real_size)
723 saved_max_pfn = PFN_DOWN(OLDMEM_BASE) - 1;
724 else
725 saved_max_pfn = PFN_DOWN(real_size) - 1;
726#endif 722#endif
727} 723}
728 724
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c
index 89ebae4008f2..ce36ea80e4f9 100644
--- a/arch/s390/mm/init.c
+++ b/arch/s390/mm/init.c
@@ -135,30 +135,17 @@ void __init paging_init(void)
135 135
136void __init mem_init(void) 136void __init mem_init(void)
137{ 137{
138 unsigned long codesize, reservedpages, datasize, initsize; 138 max_mapnr = max_low_pfn;
139
140 max_mapnr = num_physpages = max_low_pfn;
141 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); 139 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
142 140
143 /* Setup guest page hinting */ 141 /* Setup guest page hinting */
144 cmma_init(); 142 cmma_init();
145 143
146 /* this will put all low memory onto the freelists */ 144 /* this will put all low memory onto the freelists */
147 totalram_pages += free_all_bootmem(); 145 free_all_bootmem();
148 setup_zero_pages(); /* Setup zeroed pages. */ 146 setup_zero_pages(); /* Setup zeroed pages. */
149 147
150 reservedpages = 0; 148 mem_init_print_info(NULL);
151
152 codesize = (unsigned long) &_etext - (unsigned long) &_text;
153 datasize = (unsigned long) &_edata - (unsigned long) &_etext;
154 initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;
155 printk("Memory: %luk/%luk available (%ldk kernel code, %ldk reserved, %ldk data, %ldk init)\n",
156 nr_free_pages() << (PAGE_SHIFT-10),
157 max_mapnr << (PAGE_SHIFT-10),
158 codesize >> 10,
159 reservedpages << (PAGE_SHIFT-10),
160 datasize >>10,
161 initsize >> 10);
162 printk("Write protected kernel read-only data: %#lx - %#lx\n", 149 printk("Write protected kernel read-only data: %#lx - %#lx\n",
163 (unsigned long)&_stext, 150 (unsigned long)&_stext,
164 PFN_ALIGN((unsigned long)&_eshared) - 1); 151 PFN_ALIGN((unsigned long)&_eshared) - 1);
@@ -166,13 +153,14 @@ void __init mem_init(void)
166 153
167void free_initmem(void) 154void free_initmem(void)
168{ 155{
169 free_initmem_default(0); 156 free_initmem_default(POISON_FREE_INITMEM);
170} 157}
171 158
172#ifdef CONFIG_BLK_DEV_INITRD 159#ifdef CONFIG_BLK_DEV_INITRD
173void __init free_initrd_mem(unsigned long start, unsigned long end) 160void __init free_initrd_mem(unsigned long start, unsigned long end)
174{ 161{
175 free_reserved_area(start, end, POISON_FREE_INITMEM, "initrd"); 162 free_reserved_area((void *)start, (void *)end, POISON_FREE_INITMEM,
163 "initrd");
176} 164}
177#endif 165#endif
178 166