1 #ifndef __ASM_SH_MMZONE_H
2 #define __ASM_SH_MMZONE_H
6 #ifdef CONFIG_NEED_MULTIPLE_NODES
7 #include <linux/numa.h>
9 extern struct pglist_data
*node_data
[];
10 #define NODE_DATA(nid) (node_data[nid])
12 static inline int pfn_to_nid(unsigned long pfn
)
16 for (nid
= 0; nid
< MAX_NUMNODES
; nid
++)
17 if (pfn
>= node_start_pfn(nid
) && pfn
<= node_end_pfn(nid
))
23 static inline struct pglist_data
*pfn_to_pgdat(unsigned long pfn
)
25 return NODE_DATA(pfn_to_nid(pfn
));
28 /* arch/sh/mm/numa.c */
29 void __init
setup_bootmem_node(int nid
, unsigned long start
, unsigned long end
);
32 setup_bootmem_node(int nid
, unsigned long start
, unsigned long end
)
35 #endif /* CONFIG_NEED_MULTIPLE_NODES */
37 /* Platform specific mem init */
38 void __init
plat_mem_setup(void);
40 /* arch/sh/kernel/setup.c */
41 void __init
__add_active_range(unsigned int nid
, unsigned long start_pfn
,
42 unsigned long end_pfn
);
43 /* arch/sh/mm/init.c */
44 void __init
allocate_pgdat(unsigned int nid
);
46 #endif /* __KERNEL__ */
47 #endif /* __ASM_SH_MMZONE_H */