Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14211
b: refs/heads/master
c: e90f22e
h: refs/heads/master
i:
  14209: 0c41d12
  14207: 66c348e
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Nov 15, 2005
1 parent 0fc5798 commit 2ef12ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 3506229ff9968e5dbc862a50285fbea0e8821b58
refs/heads/master: e90f22edf432512219cc2952f5811961abbd164f
5 changes: 2 additions & 3 deletions trunk/include/asm-x86_64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@
/* Simple perfect hash to map physical addresses to node numbers */
extern int memnode_shift;
extern u8 memnodemap[NODEMAPSIZE];
extern int maxnode;

extern struct pglist_data *node_data[];

static inline __attribute__((pure)) int phys_to_nid(unsigned long addr)
{
int nid;
unsigned nid;
VIRTUAL_BUG_ON((addr >> memnode_shift) >= NODEMAPSIZE);
nid = memnodemap[addr >> memnode_shift];
VIRTUAL_BUG_ON(nid > maxnode);
VIRTUAL_BUG_ON(nid >= MAX_NUMNODES || !node_data[nid]);
return nid;
}

Expand Down

0 comments on commit 2ef12ad

Please sign in to comment.