This source file includes following definitions.
- pfn_to_nid
1
2
3
4
5
6
7
8
9
10
11 #ifndef _ASM_IA64_MMZONE_H
12 #define _ASM_IA64_MMZONE_H
13
14 #include <linux/numa.h>
15 #include <asm/page.h>
16 #include <asm/meminit.h>
17
18 #ifdef CONFIG_NUMA
19
20 static inline int pfn_to_nid(unsigned long pfn)
21 {
22 extern int paddr_to_nid(unsigned long);
23 int nid = paddr_to_nid(pfn << PAGE_SHIFT);
24 if (nid < 0)
25 return 0;
26 else
27 return nid;
28 }
29
30 #define MAX_PHYSNODE_ID 2048
31 #endif
32
33 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 4)
34
35 #endif