Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2461
b: refs/heads/master
c: 400e651
h: refs/heads/master
i:
  2459: 809e0ba
v: v3
  • Loading branch information
Bob Picco authored and Linus Torvalds committed Jun 22, 2005
1 parent 9338f52 commit 3f721ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0edd73b33426df61b1d8a0a50d1f2ec097500abb
refs/heads/master: 400e65146c428d2ef677a927786fda2cec545a76
14 changes: 14 additions & 0 deletions trunk/include/asm-ia64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
#include <asm/page.h>
#include <asm/meminit.h>

static inline int pfn_to_nid(unsigned long pfn)
{
#ifdef CONFIG_NUMA
extern int paddr_to_nid(unsigned long);
int nid = paddr_to_nid(pfn << PAGE_SHIFT);
if (nid < 0)
return 0;
else
return nid;
#else
return 0;
#endif
}

#ifdef CONFIG_DISCONTIGMEM

#ifdef CONFIG_IA64_DIG /* DIG systems are small */
Expand Down

0 comments on commit 3f721ee

Please sign in to comment.