From a38f1f263b01fa019c56c01ffa7800877314a616 Mon Sep 17 00:00:00 2001 From: Attilio Rao Date: Mon, 13 Jun 2011 13:28:31 +0000 Subject: Remove pc_cpumask and pc_other_cpus usage from MI code. Tested by: pluknet --- sys/dev/xen/control/control.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/dev/xen') diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index bc59fa0ecb2a..301d4e827c6e 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -197,6 +197,7 @@ extern void xencons_resume(void); static void xctrl_suspend() { + u_int cpuid; int i, j, k, fpp; unsigned long max_pfn, start_info_mfn; @@ -210,11 +211,11 @@ xctrl_suspend() thread_lock(td); sched_bind(td, 0); thread_unlock(td); - KASSERT(PCPU_GET(cpuid) == 0, ("xen_suspend: not running on cpu 0")); + cpuid = PCPU_GET(cpuid); + KASSERT(cpuid == 0, ("xen_suspend: not running on cpu 0")); - sched_pin(); - map = PCPU_GET(other_cpus); - sched_unpin(); + map = all_cpus; + CPU_CLR(cpuid, &map); CPU_NAND(&map, &stopped_cpus); if (!CPU_EMPTY(&map)) stop_cpus(map); -- cgit v1.3