aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc64/Kconfig4
-rw-r--r--include/asm-ppc64/mmzone.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/ppc64/Kconfig b/arch/ppc64/Kconfig
index 85f8fcf44b6c..3c8bfd0345cc 100644
--- a/arch/ppc64/Kconfig
+++ b/arch/ppc64/Kconfig
@@ -211,6 +211,10 @@ config ARCH_FLATMEM_ENABLE
211 211
212source "mm/Kconfig" 212source "mm/Kconfig"
213 213
214config HAVE_ARCH_EARLY_PFN_TO_NID
215 bool
216 default y
217
214# Some NUMA nodes have memory ranges that span 218# Some NUMA nodes have memory ranges that span
215# other nodes. Even though a pfn is valid and 219# other nodes. Even though a pfn is valid and
216# between a node's start and end pfns, it may not 220# between a node's start and end pfns, it may not
diff --git a/include/asm-ppc64/mmzone.h b/include/asm-ppc64/mmzone.h
index cbfc5ecfe875..ecc4b07507d6 100644
--- a/include/asm-ppc64/mmzone.h
+++ b/include/asm-ppc64/mmzone.h
@@ -90,4 +90,9 @@ static inline int pa_to_nid(unsigned long pa)
90#define discontigmem_pfn_valid(pfn) ((pfn) < num_physpages) 90#define discontigmem_pfn_valid(pfn) ((pfn) < num_physpages)
91 91
92#endif /* CONFIG_DISCONTIGMEM */ 92#endif /* CONFIG_DISCONTIGMEM */
93
94#ifdef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID
95#define early_pfn_to_nid(pfn) pa_to_nid(((unsigned long)pfn) << PAGE_SHIFT)
96#endif
97
93#endif /* _ASM_MMZONE_H_ */ 98#endif /* _ASM_MMZONE_H_ */