/* SPDX-License-Identifier: GPL-2.0 */ /* * 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 | 54.87% | 1 | 8.33% |
Ivan Kokshaysky | 80 | 35.40% | 1 | 8.33% |
Andrew Morton | 9 | 3.98% | 3 | 25.00% |
Dave McCracken | 7 | 3.10% | 1 | 8.33% |
Kamezawa Hiroyuki | 2 | 0.88% | 2 | 16.67% |
Nadia Yvette Chambers | 1 | 0.44% | 1 | 8.33% |
Greg Kroah-Hartman | 1 | 0.44% | 1 | 8.33% |
Al Viro | 1 | 0.44% | 1 | 8.33% |
Alan Cox | 1 | 0.44% | 1 | 8.33% |
Total | 226 | 100.00% | 12 | 100.00% |