1 #ifndef __ARCH_ARM_NUMA_H 2 #define __ARCH_ARM_NUMA_H 3 4 #include <xen/mm.h> 5 6 typedef u8 nodeid_t; 7 8 /* Fake one node for now. See also node_online_map. */ 9 #define cpu_to_node(cpu) 0 10 #define node_to_cpumask(node) (cpu_online_map) 11 phys_to_nid(paddr_t addr)12static inline __attribute__((pure)) nodeid_t phys_to_nid(paddr_t addr) 13 { 14 return 0; 15 } 16 17 /* 18 * TODO: make first_valid_mfn static when NUMA is supported on Arm, this 19 * is required because the dummy helpers are using it. 20 */ 21 extern mfn_t first_valid_mfn; 22 23 /* XXX: implement NUMA support */ 24 #define node_spanned_pages(nid) (max_page - mfn_x(first_valid_mfn)) 25 #define node_start_pfn(nid) (mfn_x(first_valid_mfn)) 26 #define __node_distance(a, b) (20) 27 28 #endif /* __ARCH_ARM_NUMA_H */ 29 /* 30 * Local variables: 31 * mode: C 32 * c-file-style: "BSD" 33 * c-basic-offset: 4 34 * indent-tabs-mode: nil 35 * End: 36 */ 37