/* * Written by Kanoj Sarcar (kanoj@sgi.com) Aug 99 * Adapted for the alpha wildfire architecture Jan 2001. */ #ifndef _ASM_MMZONE_H_ #define _ASM_MMZONE_H_ #include <asm/smp.h> struct bootmem_data_t; /* stupid forward decl. */ /* * Following are macros that are specific to this numa platform. */ extern pg_data_t node_data[]; #define alpha_pa_to_nid(pa) \ (alpha_mv.pa_to_nid \ ? alpha_mv.pa_to_nid(pa) \ : (0)) #define node_mem_start(nid) \ (alpha_mv.node_mem_start \ ? alpha_mv.node_mem_start(nid) \ : (0UL)) #define node_mem_size(nid) \ (alpha_mv.node_mem_size \ ? alpha_mv.node_mem_size(nid) \ : ((nid) ? (0UL) : (~0UL))) #define pa_to_nid(pa) alpha_pa_to_nid(pa) #define NODE_DATA(nid) (&node_data[(nid)]) #define node_localnr(pfn, nid) ((pfn) - NODE_DATA(nid)->node_start_pfn) #if 1 #define PLAT_NODE_DATA_LOCALNR(p, n) \ (((p) >> PAGE_SHIFT) - PLAT_NODE_DATA(n)->gendata.node_start_pfn) #else
static inline unsigned long PLAT_NODE_DATA_LOCALNR(unsigned long p, int n) { unsigned long temp; temp = p >> PAGE_SHIFT; return temp - PLAT_NODE_DATA(n)->gendata.node_start_pfn; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 31 | 83.78% | 1 | 50.00% |
Andrew Morton | 6 | 16.22% | 1 | 50.00% |
Total | 37 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds | 124 | 55.11% | 1 | 9.09% |
Ivan Kokshaysky | 80 | 35.56% | 1 | 9.09% |
Andrew Morton | 9 | 4.00% | 3 | 27.27% |
Dave McCracken | 7 | 3.11% | 1 | 9.09% |
Kamezawa Hiroyuki | 2 | 0.89% | 2 | 18.18% |
Al Viro | 1 | 0.44% | 1 | 9.09% |
Nadia Yvette Chambers | 1 | 0.44% | 1 | 9.09% |
Alan Cox | 1 | 0.44% | 1 | 9.09% |
Total | 225 | 100.00% | 11 | 100.00% |