diff options
author | Mike Travis <travis@sgi.com> | 2008-12-17 02:33:57 +0100 |
---|---|---|
committer | Mike Travis <travis@sgi.com> | 2008-12-17 02:40:57 +0100 |
commit | b78936e14ee47b6b2d628501a0eab5270db80132 (patch) | |
tree | db43c9d6472aa922941e551627d8125984cb389f /arch/x86/xen/suspend.c | |
parent | x86: Update io_apic.c to use new cpumask API (diff) | |
download | linux-b78936e14ee47b6b2d628501a0eab5270db80132.tar.xz linux-b78936e14ee47b6b2d628501a0eab5270db80132.zip |
xen: convert to cpumask_var_t and new cpumask primitives.
Simple change, and eventual space saving when NR_CPUS >> nr_cpu_ids.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
Diffstat (limited to 'arch/x86/xen/suspend.c')
-rw-r--r-- | arch/x86/xen/suspend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c index 2a234db5949b..212ffe012b76 100644 --- a/arch/x86/xen/suspend.c +++ b/arch/x86/xen/suspend.c @@ -35,7 +35,8 @@ void xen_post_suspend(int suspend_cancelled) pfn_to_mfn(xen_start_info->console.domU.mfn); } else { #ifdef CONFIG_SMP - xen_cpu_initialized_map = cpu_online_map; + BUG_ON(xen_cpu_initialized_map == NULL); + cpumask_copy(xen_cpu_initialized_map, cpu_online_mask); #endif xen_vcpu_restore(); } |