aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-06-04 03:52:42 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-06-04 23:20:40 -0400
commit6d97d7a28faf19199da12f2512cc7d37dd373cc0 (patch)
treeb2ac2489e266447524ac31a64837f838cf8fce18 /arch/powerpc/platforms
parenta5d862576a64cb3e0c22dc9cc2170e4d750714f9 (diff)
powerpc/powernv: Set memory_block_size_bytes to 256MB
powerpc sets a low SECTION_SIZE_BITS to accomodate small pseries boxes. We default to 16MB memory blocks, and boxes with a lot of memory end up with enormous numbers of sysfs memory nodes. Set a more reasonable default for powernv of 256MB. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powernv/setup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platforms/powernv/setup.c
index 865aab40ded7..8c16a5f96728 100644
--- a/arch/powerpc/platforms/powernv/setup.c
+++ b/arch/powerpc/platforms/powernv/setup.c
@@ -244,6 +244,13 @@ static void pnv_kexec_cpu_down(int crash_shutdown, int secondary)
244} 244}
245#endif /* CONFIG_KEXEC */ 245#endif /* CONFIG_KEXEC */
246 246
247#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
248static unsigned long pnv_memory_block_size(void)
249{
250 return 256UL * 1024 * 1024;
251}
252#endif
253
247static void __init pnv_setup_machdep_opal(void) 254static void __init pnv_setup_machdep_opal(void)
248{ 255{
249 ppc_md.get_boot_time = opal_get_boot_time; 256 ppc_md.get_boot_time = opal_get_boot_time;
@@ -326,4 +333,7 @@ define_machine(powernv) {
326#ifdef CONFIG_KEXEC 333#ifdef CONFIG_KEXEC
327 .kexec_cpu_down = pnv_kexec_cpu_down, 334 .kexec_cpu_down = pnv_kexec_cpu_down,
328#endif 335#endif
336#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
337 .memory_block_size = pnv_memory_block_size,
338#endif
329}; 339};