Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13859
b: refs/heads/master
c: c0d3340
h: refs/heads/master
i:
  13857: aef37f3
  13855: 08ac41b
v: v3
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Nov 11, 2005
1 parent 95cab20 commit b144f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1dff227e0184de3d1f12265dff0c47d86dad2eec
refs/heads/master: c0d33403ad39f4e945dd5b3febe5c1f94a9a1d29
7 changes: 1 addition & 6 deletions trunk/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 b144f59

Please sign in to comment.