diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-05-27 11:15:08 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-05-27 11:15:08 +0100 |
commit | c3da952a0261cb2fa381154a6f22b758a4bd843b (patch) | |
tree | 92496e6fa23a402388431550351e458deedf84ec /xen/arch/x86/machine_kexec.c | |
parent | cf5e6f2d34413cac233939ab701191655a587ca7 (diff) | |
download | xen-c3da952a0261cb2fa381154a6f22b758a4bd843b.tar.gz xen-c3da952a0261cb2fa381154a6f22b758a4bd843b.tar.bz2 xen-c3da952a0261cb2fa381154a6f22b758a4bd843b.zip |
Pass cpumasks by reference always.
Rather than passing cpumasks by value in all cases (which is
problematic for large NR_CPUS configurations), pass them 'by
reference' (i.e. through a pointer to a const cpumask).
On x86 this changes send_IPI_mask() to always only send IPIs to remote
CPUs (meaning any caller needing to handle the current CPU as well has
to do so on its own).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/machine_kexec.c')
-rw-r--r-- | xen/arch/x86/machine_kexec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xen/arch/x86/machine_kexec.c b/xen/arch/x86/machine_kexec.c index 4d15e4b063..af7663e3fc 100644 --- a/xen/arch/x86/machine_kexec.c +++ b/xen/arch/x86/machine_kexec.c @@ -91,7 +91,6 @@ static void __machine_reboot_kexec(void *data) void machine_reboot_kexec(xen_kexec_image_t *image) { int reboot_cpu_id; - cpumask_t reboot_cpu; reboot_cpu_id = 0; @@ -100,9 +99,8 @@ void machine_reboot_kexec(xen_kexec_image_t *image) if ( reboot_cpu_id != smp_processor_id() ) { - cpus_clear(reboot_cpu); - cpu_set(reboot_cpu_id, reboot_cpu); - on_selected_cpus(reboot_cpu, __machine_reboot_kexec, image, 1, 0); + on_selected_cpus(cpumask_of(reboot_cpu_id), __machine_reboot_kexec, + image, 1, 0); for (;;) ; /* nothing */ } |