* [PATCH 12/14] cpumask: use modern cpumask style in Xen
@ 2009-11-03 4:28 Rusty Russell
2009-11-04 15:26 ` [tip:x86/xen] cpumask: Use " tip-bot for Rusty Russell
0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2009-11-03 4:28 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: linux-kernel, Ingo Molnar, Andrew Morton, x86, Ingo Molnar,
Andrew Morton, x86
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
To: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: x86@kernel.org
---
arch/x86/xen/smp.c | 2 +-
drivers/xen/cpu_hotplug.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
--- 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
--- a/drivers/xen/cpu_hotplug.c
+++ b/drivers/xen/cpu_hotplug.c
@@ -86,7 +86,7 @@ static int setup_cpu_watcher(struct noti
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);
}
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:x86/xen] cpumask: Use modern cpumask style in Xen
2009-11-03 4:28 [PATCH 12/14] cpumask: use modern cpumask style in Xen Rusty Russell
@ 2009-11-04 15:26 ` tip-bot for Rusty Russell
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Rusty Russell @ 2009-11-04 15:26 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, jeremy, hpa, mingo, rusty, tglx, mingo
Commit-ID: d7d3756c5b1277fafd132ce7a2211b388c3b5bd2
Gitweb: http://git.kernel.org/tip/d7d3756c5b1277fafd132ce7a2211b388c3b5bd2
Author: Rusty Russell <rusty@rustcorp.com.au>
AuthorDate: Tue, 3 Nov 2009 14:58:38 +1030
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 4 Nov 2009 13:19:50 +0100
cpumask: Use modern cpumask style in Xen
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
LKML-Reference: <200911031458.38406.rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/xen/smp.c | 2 +-
drivers/xen/cpu_hotplug.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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);
}
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-04 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 4:28 [PATCH 12/14] cpumask: use modern cpumask style in Xen Rusty Russell
2009-11-04 15:26 ` [tip:x86/xen] cpumask: Use " tip-bot for Rusty Russell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.