diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-31 00:05:11 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-30 07:35:12 -0400 |
commit | 0451fb2ebc4f65c265bb51d71a2fc986ebf20218 (patch) | |
tree | 6851f5645cd53d9c243b048919ca2a5683e97a64 /arch/x86/include/asm/topology.h | |
parent | af76aba00fdcfb21535c9f9872245d14097a4561 (diff) |
cpumask: remove node_to_first_cpu
Everyone defines it, and only one person uses it
(arch/mips/sgi-ip27/ip27-nmi.c). So just open code it there.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/x86/include/asm/topology.h')
-rw-r--r-- | arch/x86/include/asm/topology.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index 77cfb2cfb386..744299c0b774 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -217,10 +217,6 @@ static inline cpumask_t node_to_cpumask(int node) | |||
217 | { | 217 | { |
218 | return cpu_online_map; | 218 | return cpu_online_map; |
219 | } | 219 | } |
220 | static inline int node_to_first_cpu(int node) | ||
221 | { | ||
222 | return first_cpu(cpu_online_map); | ||
223 | } | ||
224 | 220 | ||
225 | static inline void setup_node_to_cpumask_map(void) { } | 221 | static inline void setup_node_to_cpumask_map(void) { } |
226 | 222 | ||
@@ -237,14 +233,6 @@ static inline void setup_node_to_cpumask_map(void) { } | |||
237 | 233 | ||
238 | #include <asm-generic/topology.h> | 234 | #include <asm-generic/topology.h> |
239 | 235 | ||
240 | #ifdef CONFIG_NUMA | ||
241 | /* Returns the number of the first CPU on Node 'node'. */ | ||
242 | static inline int node_to_first_cpu(int node) | ||
243 | { | ||
244 | return cpumask_first(cpumask_of_node(node)); | ||
245 | } | ||
246 | #endif | ||
247 | |||
248 | extern cpumask_t cpu_coregroup_map(int cpu); | 236 | extern cpumask_t cpu_coregroup_map(int cpu); |
249 | extern const struct cpumask *cpu_coregroup_mask(int cpu); | 237 | extern const struct cpumask *cpu_coregroup_mask(int cpu); |
250 | 238 | ||