]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] ppc64: prep for NUMA sparsemem rework
authorAnton Blanchard <anton@samba.org>
Fri, 11 Nov 2005 03:12:26 +0000 (14:12 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 11 Nov 2005 11:20:43 +0000 (22:20 +1100)
Remove an unused numa define and move a discontigmem specific define
inside the relevant ifdef.

I will submit a separate patch to remove them from other architectures,
but the ppc64 patches to follow depend on this.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-ppc64/mmzone.h

index 15e777ce0f4ab66fe61f64ff4fed055c4a86d7fc..f6e95da96427c8fb6994474c006f5647c5f680c8 100644 (file)
@@ -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)