diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-24 11:34:26 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-23 20:04:34 -0400 |
commit | 29c337a034b5526e80a785409d15d3b7c7edecf4 (patch) | |
tree | 0fb68fdaa8ad12024181a1b7a8a2bc7b142a6dbf /arch/alpha/include/asm/topology.h | |
parent | b966cd6b285d4cd6feaf8b06b21bc87adb907929 (diff) |
cpumask: remove obsolete node_to_cpumask now everyone uses cpumask_of_node
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/alpha/include/asm/topology.h')
-rw-r--r-- | arch/alpha/include/asm/topology.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/alpha/include/asm/topology.h b/arch/alpha/include/asm/topology.h index f5bd6cd4b3bc..36b3a30ba0e5 100644 --- a/arch/alpha/include/asm/topology.h +++ b/arch/alpha/include/asm/topology.h | |||
@@ -22,23 +22,6 @@ static inline int cpu_to_node(int cpu) | |||
22 | return node; | 22 | return node; |
23 | } | 23 | } |
24 | 24 | ||
25 | static inline cpumask_t node_to_cpumask(int node) | ||
26 | { | ||
27 | cpumask_t node_cpu_mask = CPU_MASK_NONE; | ||
28 | int cpu; | ||
29 | |||
30 | for_each_online_cpu(cpu) { | ||
31 | if (cpu_to_node(cpu) == node) | ||
32 | cpu_set(cpu, node_cpu_mask); | ||
33 | } | ||
34 | |||
35 | #ifdef DEBUG_NUMA | ||
36 | printk("node %d: cpu_mask: %016lx\n", node, node_cpu_mask); | ||
37 | #endif | ||
38 | |||
39 | return node_cpu_mask; | ||
40 | } | ||
41 | |||
42 | extern struct cpumask node_to_cpumask_map[]; | 25 | extern struct cpumask node_to_cpumask_map[]; |
43 | /* FIXME: This is dumb, recalculating every time. But simple. */ | 26 | /* FIXME: This is dumb, recalculating every time. But simple. */ |
44 | static const struct cpumask *cpumask_of_node(int node) | 27 | static const struct cpumask *cpumask_of_node(int node) |