diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-13 00:19:54 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-13 00:19:54 -0400 |
commit | 4f0628963c86d2f97b8cb9acc024a7fe288a6a57 (patch) | |
tree | 83e7592c0706f96979628802344d886481a98b07 /arch/x86/kernel/apic/es7000_32.c | |
parent | 3f76a183de8ad3aeb7425f3d9685bb6003abd1a5 (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/kernel/apic/es7000_32.c')
-rw-r--r-- | arch/x86/kernel/apic/es7000_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c index 1322f5409e20..26d3a3eba75b 100644 --- a/arch/x86/kernel/apic/es7000_32.c +++ b/arch/x86/kernel/apic/es7000_32.c | |||
@@ -460,9 +460,9 @@ static const cpumask_t *target_cpus_cluster(void) | |||
460 | return cpu_all_mask; | 460 | return cpu_all_mask; |
461 | } | 461 | } |
462 | 462 | ||
463 | static const cpumask_t *es7000_target_cpus(void) | 463 | static const struct cpumask *es7000_target_cpus(void) |
464 | { | 464 | { |
465 | return &cpumask_of_cpu(smp_processor_id()); | 465 | return cpumask_of(smp_processor_id()); |
466 | } | 466 | } |
467 | 467 | ||
468 | static unsigned long | 468 | static unsigned long |
@@ -517,7 +517,7 @@ static void es7000_setup_apic_routing(void) | |||
517 | "Enabling APIC mode: %s. Using %d I/O APICs, target cpus %lx\n", | 517 | "Enabling APIC mode: %s. Using %d I/O APICs, target cpus %lx\n", |
518 | (apic_version[apic] == 0x14) ? | 518 | (apic_version[apic] == 0x14) ? |
519 | "Physical Cluster" : "Logical Cluster", | 519 | "Physical Cluster" : "Logical Cluster", |
520 | nr_ioapics, cpus_addr(*es7000_target_cpus())[0]); | 520 | nr_ioapics, cpumask_bits(es7000_target_cpus())[0]); |
521 | } | 521 | } |
522 | 522 | ||
523 | static int es7000_apicid_to_node(int logical_apicid) | 523 | static int es7000_apicid_to_node(int logical_apicid) |