]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/asm-ppc64/mmzone.h
[PATCH] ppc64: add early_pfn_to_nid
[linux-2.6.git] / include / asm-ppc64 / mmzone.h
index cbfc5ecfe87552c1ed21a0c9bf359cfbf841b6cf..ecc4b07507d65f097ed68e5498be6b6b65483e33 100644 (file)
@@ -90,4 +90,9 @@ static inline int pa_to_nid(unsigned long pa)
 #define discontigmem_pfn_valid(pfn)            ((pfn) < num_physpages)
 
 #endif /* CONFIG_DISCONTIGMEM */
+
+#ifdef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID
+#define early_pfn_to_nid(pfn)  pa_to_nid(((unsigned long)pfn) << PAGE_SHIFT)
+#endif
+
 #endif /* _ASM_MMZONE_H_ */