diff options
Diffstat (limited to 'include/asm-ia64/mmzone.h')
-rw-r--r-- | include/asm-ia64/mmzone.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-ia64/mmzone.h b/include/asm-ia64/mmzone.h index 9491dacc89cf..83ca4043fc11 100644 --- a/include/asm-ia64/mmzone.h +++ b/include/asm-ia64/mmzone.h | |||
@@ -15,6 +15,20 @@ | |||
15 | #include <asm/page.h> | 15 | #include <asm/page.h> |
16 | #include <asm/meminit.h> | 16 | #include <asm/meminit.h> |
17 | 17 | ||
18 | static inline int pfn_to_nid(unsigned long pfn) | ||
19 | { | ||
20 | #ifdef CONFIG_NUMA | ||
21 | extern int paddr_to_nid(unsigned long); | ||
22 | int nid = paddr_to_nid(pfn << PAGE_SHIFT); | ||
23 | if (nid < 0) | ||
24 | return 0; | ||
25 | else | ||
26 | return nid; | ||
27 | #else | ||
28 | return 0; | ||
29 | #endif | ||
30 | } | ||
31 | |||
18 | #ifdef CONFIG_DISCONTIGMEM | 32 | #ifdef CONFIG_DISCONTIGMEM |
19 | 33 | ||
20 | #ifdef CONFIG_IA64_DIG /* DIG systems are small */ | 34 | #ifdef CONFIG_IA64_DIG /* DIG systems are small */ |