Skip to content

Commit

Permalink
[PATCH] ppc64: prep for NUMA sparsemem rework
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Nov 11, 2005
1 parent 1dff227 commit c0d3340
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/asm-ppc64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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)

Expand Down

0 comments on commit c0d3340

Please sign in to comment.