diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-10-21 09:19:44 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-10-21 09:19:44 +0200 |
commit | 3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e (patch) | |
tree | 02fa5b020be5edebcbc225f9bd6a9d413917055f /xen/common/cpu.c | |
parent | 20307695e5c22a58b4cce35fba5333375da5a7fa (diff) | |
download | xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.tar.gz xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.tar.bz2 xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.zip |
eliminate cpumask accessors referencing NR_CPUS
... in favor of using the new, nr_cpumask_bits-based ones.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/cpu.c')
-rw-r--r-- | xen/common/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/common/cpu.c b/xen/common/cpu.c index c80d923bec..c4fadef344 100644 --- a/xen/common/cpu.c +++ b/xen/common/cpu.c @@ -176,7 +176,7 @@ int disable_nonboot_cpus(void) BUG_ON(smp_processor_id() != 0); - cpus_clear(frozen_cpus); + cpumask_clear(&frozen_cpus); printk("Disabling non-boot CPUs ...\n"); @@ -192,7 +192,7 @@ int disable_nonboot_cpus(void) break; } - cpu_set(cpu, frozen_cpus); + cpumask_set_cpu(cpu, &frozen_cpus); } BUG_ON(!error && (num_online_cpus() != 1)); @@ -214,5 +214,5 @@ void enable_nonboot_cpus(void) } } - cpus_clear(frozen_cpus); + cpumask_clear(&frozen_cpus); } |