[PATCH] ppc64: prep for NUMA sparsemem rework

Anton Blanchard anton at samba.org
Fri Nov 11 14:12:26 EST 2005


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 at samba.org>
---

Index: build/include/asm-ppc64/mmzone.h
===================================================================
--- build.orig/include/asm-ppc64/mmzone.h	2005-11-11 11:36:17.000000000 +1100
+++ build/include/asm-ppc64/mmzone.h	2005-11-11 11:39:29.000000000 +1100
@@ -66,8 +66,6 @@
 	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 @@
 
 #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)
 




More information about the Linuxppc64-dev mailing list