summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/setup.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@au1.ibm.com>2014-06-04 17:50:47 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-06-05 13:20:39 +1000
commita5d862576a64cb3e0c22dc9cc2170e4d750714f9 (patch)
treefcbe4063edf1c207af6bcde00506cb763d1db589 /arch/powerpc/platforms/pseries/setup.c
parent223ca9d855ce32a4cc2d2b961e6e9d1fb36872ba (diff)
downloadlinux-a5d862576a64cb3e0c22dc9cc2170e4d750714f9.tar.gz
linux-a5d862576a64cb3e0c22dc9cc2170e4d750714f9.tar.bz2
linux-a5d862576a64cb3e0c22dc9cc2170e4d750714f9.zip
powerpc: Allow ppc_md platform hook to override memory_block_size_bytes
The pseries platform code unconditionally overrides memory_block_size_bytes regardless of the running platform. Create a ppc_md hook that so each platform can choose to do what it wants. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/setup.c')
-rw-r--r--arch/powerpc/platforms/pseries/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index 215c3c269617..adc21a0e3410 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -810,4 +810,7 @@ define_machine(pseries) {
#ifdef CONFIG_KEXEC
.machine_kexec = pSeries_machine_kexec,
#endif
+#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
+ .memory_block_size = pseries_memory_block_size,
+#endif
};