ia64/xen-unstable

changeset 19168:4c92a04f4f5e

x86: solve spinlock bug in s3 cpufreq path.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 05 12:13:25 2009 +0000 (2009-02-05)
parents 5fd1a6951801
children 8303bd33d030
files xen/arch/x86/smpboot.c
line diff
     1.1 --- a/xen/arch/x86/smpboot.c	Thu Feb 05 12:12:34 2009 +0000
     1.2 +++ b/xen/arch/x86/smpboot.c	Thu Feb 05 12:13:25 2009 +0000
     1.3 @@ -1256,8 +1256,6 @@ int __cpu_disable(void)
     1.4  	mdelay(1);
     1.5  	local_irq_disable();
     1.6  
     1.7 -	cpufreq_del_cpu(cpu);
     1.8 -
     1.9  	time_suspend();
    1.10  
    1.11  	cpu_mcheck_disable();
    1.12 @@ -1321,6 +1319,8 @@ int cpu_down(unsigned int cpu)
    1.13  
    1.14  	printk("Prepare to bring CPU%d down...\n", cpu);
    1.15  
    1.16 +	cpufreq_del_cpu(cpu);
    1.17 +
    1.18  	err = stop_machine_run(take_cpu_down, NULL, cpu);
    1.19  	if (err < 0)
    1.20  		goto out;