diff options
author | Anton Blanchard <anton@au1.ibm.com> | 2014-06-04 03:50:47 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-06-04 23:20:39 -0400 |
commit | a5d862576a64cb3e0c22dc9cc2170e4d750714f9 (patch) | |
tree | fcbe4063edf1c207af6bcde00506cb763d1db589 /arch/powerpc/include | |
parent | 223ca9d855ce32a4cc2d2b961e6e9d1fb36872ba (diff) |
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')
-rw-r--r-- | arch/powerpc/include/asm/machdep.h | 3 |
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 { | |||
98 | void (*iommu_save)(void); | 98 | void (*iommu_save)(void); |
99 | void (*iommu_restore)(void); | 99 | void (*iommu_restore)(void); |
100 | #endif | 100 | #endif |
101 | #ifdef CONFIG_MEMORY_HOTPLUG_SPARSE | ||
102 | unsigned long (*memory_block_size)(void); | ||
103 | #endif | ||
101 | #endif /* CONFIG_PPC64 */ | 104 | #endif /* CONFIG_PPC64 */ |
102 | 105 | ||
103 | void (*pci_dma_dev_setup)(struct pci_dev *dev); | 106 | void (*pci_dma_dev_setup)(struct pci_dev *dev); |