diff options
Diffstat (limited to 'arch/powerpc/include/asm/mmzone.h')
-rw-r--r-- | arch/powerpc/include/asm/mmzone.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmzone.h b/arch/powerpc/include/asm/mmzone.h index aac87cbceb5..fd3fd58bad8 100644 --- a/arch/powerpc/include/asm/mmzone.h +++ b/arch/powerpc/include/asm/mmzone.h | |||
@@ -33,6 +33,9 @@ extern int numa_cpu_lookup_table[]; | |||
33 | extern cpumask_var_t node_to_cpumask_map[]; | 33 | extern cpumask_var_t node_to_cpumask_map[]; |
34 | #ifdef CONFIG_MEMORY_HOTPLUG | 34 | #ifdef CONFIG_MEMORY_HOTPLUG |
35 | extern unsigned long max_pfn; | 35 | extern unsigned long max_pfn; |
36 | u64 memory_hotplug_max(void); | ||
37 | #else | ||
38 | #define memory_hotplug_max() memblock_end_of_DRAM() | ||
36 | #endif | 39 | #endif |
37 | 40 | ||
38 | /* | 41 | /* |
@@ -42,6 +45,8 @@ extern unsigned long max_pfn; | |||
42 | #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) | 45 | #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) |
43 | #define node_end_pfn(nid) (NODE_DATA(nid)->node_end_pfn) | 46 | #define node_end_pfn(nid) (NODE_DATA(nid)->node_end_pfn) |
44 | 47 | ||
48 | #else | ||
49 | #define memory_hotplug_max() memblock_end_of_DRAM() | ||
45 | #endif /* CONFIG_NEED_MULTIPLE_NODES */ | 50 | #endif /* CONFIG_NEED_MULTIPLE_NODES */ |
46 | 51 | ||
47 | #endif /* __KERNEL__ */ | 52 | #endif /* __KERNEL__ */ |