aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-13 00:19:54 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-03-13 00:19:54 -0400
commit4f0628963c86d2f97b8cb9acc024a7fe288a6a57 (patch)
tree83e7592c0706f96979628802344d886481a98b07 /arch/x86/include
parent3f76a183de8ad3aeb7425f3d9685bb6003abd1a5 (diff)
cpumask: use new cpumask functions throughout x86
Impact: cleanup 1) &cpu_online_map -> cpu_online_mask 2) first_cpu/next_cpu_nr -> cpumask_first/cpumask_next 3) cpu_*_map manipulation -> init_cpu_* / set_cpu_* Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/topology.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index f8b833e1257f..1ce1e1afa801 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -174,11 +174,11 @@ static inline int early_cpu_to_node(int cpu)
174 174
175static inline const cpumask_t *cpumask_of_node(int node) 175static inline const cpumask_t *cpumask_of_node(int node)
176{ 176{
177 return &cpu_online_map; 177 return cpu_online_mask;
178} 178}
179static inline int node_to_first_cpu(int node) 179static inline int node_to_first_cpu(int node)
180{ 180{
181 return first_cpu(cpu_online_map); 181 return cpumask_first(cpu_online_mask);
182} 182}
183 183
184static inline void setup_node_to_cpumask_map(void) { } 184static inline void setup_node_to_cpumask_map(void) { }