diff options
author | Mike Travis <travis@sgi.com> | 2008-12-16 20:33:59 -0500 |
---|---|---|
committer | Mike Travis <travis@sgi.com> | 2008-12-16 20:40:57 -0500 |
commit | bcda016eddd7a8b374bb371473c821a91ff1d8cc (patch) | |
tree | 9335614036937765c385479d707ef7327fca7d67 /arch/x86/xen/smp.c | |
parent | d7b381bb7b1ad69ff008ea063d26e988b686c8de (diff) |
x86: cosmetic changes apic-related files.
This patch simply changes cpumask_t to struct cpumask and similar
trivial modernizations.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Diffstat (limited to 'arch/x86/xen/smp.c')
-rw-r--r-- | arch/x86/xen/smp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index b3a95868839b..c44e2069c7c7 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c | |||
@@ -411,22 +411,23 @@ static void xen_smp_send_reschedule(int cpu) | |||
411 | xen_send_IPI_one(cpu, XEN_RESCHEDULE_VECTOR); | 411 | xen_send_IPI_one(cpu, XEN_RESCHEDULE_VECTOR); |
412 | } | 412 | } |
413 | 413 | ||
414 | static void xen_send_IPI_mask(const cpumask_t *mask, enum ipi_vector vector) | 414 | static void xen_send_IPI_mask(const struct cpumask *mask, |
415 | enum ipi_vector vector) | ||
415 | { | 416 | { |
416 | unsigned cpu; | 417 | unsigned cpu; |
417 | 418 | ||
418 | for_each_cpu_and(cpu, mask, &cpu_online_map) | 419 | for_each_cpu_and(cpu, mask, cpu_online_mask) |
419 | xen_send_IPI_one(cpu, vector); | 420 | xen_send_IPI_one(cpu, vector); |
420 | } | 421 | } |
421 | 422 | ||
422 | static void xen_smp_send_call_function_ipi(const cpumask_t *mask) | 423 | static void xen_smp_send_call_function_ipi(const struct cpumask *mask) |
423 | { | 424 | { |
424 | int cpu; | 425 | int cpu; |
425 | 426 | ||
426 | xen_send_IPI_mask(mask, XEN_CALL_FUNCTION_VECTOR); | 427 | xen_send_IPI_mask(mask, XEN_CALL_FUNCTION_VECTOR); |
427 | 428 | ||
428 | /* Make sure other vcpus get a chance to run if they need to. */ | 429 | /* Make sure other vcpus get a chance to run if they need to. */ |
429 | for_each_cpu_mask_nr(cpu, *mask) { | 430 | for_each_cpu(cpu, mask) { |
430 | if (xen_vcpu_stolen(cpu)) { | 431 | if (xen_vcpu_stolen(cpu)) { |
431 | HYPERVISOR_sched_op(SCHEDOP_yield, 0); | 432 | HYPERVISOR_sched_op(SCHEDOP_yield, 0); |
432 | break; | 433 | break; |
@@ -436,7 +437,7 @@ static void xen_smp_send_call_function_ipi(const cpumask_t *mask) | |||
436 | 437 | ||
437 | static void xen_smp_send_call_function_single_ipi(int cpu) | 438 | static void xen_smp_send_call_function_single_ipi(int cpu) |
438 | { | 439 | { |
439 | xen_send_IPI_mask(&cpumask_of_cpu(cpu), | 440 | xen_send_IPI_mask(cpumask_of(cpu), |
440 | XEN_CALL_FUNCTION_SINGLE_VECTOR); | 441 | XEN_CALL_FUNCTION_SINGLE_VECTOR); |
441 | } | 442 | } |
442 | 443 | ||