From: Rusty Russell Date: Tue, 3 Nov 2009 04:28:38 +0000 (+1030) Subject: cpumask: Use modern cpumask style in Xen X-Git-Tag: upstream/snapshot3+hdmi~16428^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7d3756c5b1277fafd132ce7a2211b388c3b5bd2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cpumask: Use modern cpumask style in Xen Signed-off-by: Rusty Russell Cc: Jeremy Fitzhardinge LKML-Reference: <200911031458.38406.rusty@rustcorp.com.au> Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index fe03eee..738da0c 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -73,7 +73,7 @@ static __cpuinit void cpu_bringup(void) xen_setup_cpu_clockevents(); - cpu_set(cpu, cpu_online_map); + set_cpu_online(cpu, true); percpu_write(cpu_state, CPU_ONLINE); wmb(); diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c index bdfd584..0f765a9 100644 --- a/drivers/xen/cpu_hotplug.c +++ b/drivers/xen/cpu_hotplug.c @@ -86,7 +86,7 @@ static int setup_cpu_watcher(struct notifier_block *notifier, for_each_possible_cpu(cpu) { if (vcpu_online(cpu) == 0) { (void)cpu_down(cpu); - cpu_clear(cpu, cpu_present_map); + set_cpu_present(cpu, false); } }