summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/machdep.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@au1.ibm.com>2014-06-04 11:50:47 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-06-05 07:20:39 +0400
commita5d862576a64cb3e0c22dc9cc2170e4d750714f9 (patch)
treefcbe4063edf1c207af6bcde00506cb763d1db589 /arch/powerpc/include/asm/machdep.h
parent223ca9d855ce32a4cc2d2b961e6e9d1fb36872ba (diff)
downloadlinux-a5d862576a64cb3e0c22dc9cc2170e4d750714f9.tar.xz
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/include/asm/machdep.h')
-rw-r--r--arch/powerpc/include/asm/machdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h
index 374abc2e41d7..f92b0b54e921 100644
--- a/arch/powerpc/include/asm/machdep.h
+++ b/arch/powerpc/include/asm/machdep.h
@@ -98,6 +98,9 @@ struct machdep_calls {
void (*iommu_save)(void);
void (*iommu_restore)(void);
#endif
+#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
+ unsigned long (*memory_block_size)(void);
+#endif
#endif /* CONFIG_PPC64 */
void (*pci_dma_dev_setup)(struct pci_dev *dev);