summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/mmzone.h')
-rw-r--r--include/asm-ppc64/mmzone.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/asm-ppc64/mmzone.h b/include/asm-ppc64/mmzone.h
index 15e777ce0f4a..f6e95da96427 100644
--- a/include/asm-ppc64/mmzone.h
+++ b/include/asm-ppc64/mmzone.h
@@ -66,8 +66,6 @@ static inline int pa_to_nid(unsigned long pa)
return nid;
}
-#define node_localnr(pfn, nid) ((pfn) - NODE_DATA(nid)->node_start_pfn)
-
/*
* Following are macros that each numa implmentation must define.
*/
@@ -77,10 +75,7 @@ static inline int pa_to_nid(unsigned long pa)
#ifdef CONFIG_DISCONTIGMEM
-/*
- * Given a kernel address, find the home node of the underlying memory.
- */
-#define kvaddr_to_nid(kaddr) pa_to_nid(__pa(kaddr))
+#define node_localnr(pfn, nid) ((pfn) - NODE_DATA(nid)->node_start_pfn)
#define pfn_to_nid(pfn) pa_to_nid((unsigned long)(pfn) << PAGE_SHIFT)