| #ifndef _ASM_ALPHA_TOPOLOGY_H |
| #define _ASM_ALPHA_TOPOLOGY_H |
| #include <linux/threads.h> |
| static inline int cpu_to_node(int cpu) |
| if (!alpha_mv.cpuid_to_nid) |
| node = alpha_mv.cpuid_to_nid(cpu); |
| static inline cpumask_t node_to_cpumask(int node) |
| cpumask_t node_cpu_mask = CPU_MASK_NONE; |
| for_each_online_cpu(cpu) { |
| if (cpu_to_node(cpu) == node) |
| cpu_set(cpu, node_cpu_mask); |
| printk("node %d: cpu_mask: %016lx\n", node, node_cpu_mask); |
| #define pcibus_to_cpumask(bus) (cpu_online_map) |
| #endif /* !CONFIG_NUMA */ |
| # include <asm-generic/topology.h> |
| #endif /* _ASM_ALPHA_TOPOLOGY_H */ |