[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] solve spinlock bug in s3 cpufreq path


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Thu, 5 Feb 2009 18:16:50 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Thu, 05 Feb 2009 02:17:30 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcmHetwBk4Ft78VbSeKVfAQwVqqoeQ==
  • Thread-topic: [PATCH] solve spinlock bug in s3 cpufreq path

solve spinlock bug in s3 cpufreq path.

Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx>

diff -r ae18e0ffa801 xen/arch/x86/smpboot.c
--- a/xen/arch/x86/smpboot.c    Wed Feb 04 20:03:08 2009 -0500
+++ b/xen/arch/x86/smpboot.c    Wed Feb 04 22:41:20 2009 -0500
@@ -1256,8 +1256,6 @@
        mdelay(1);
        local_irq_disable();
 
-       cpufreq_del_cpu(cpu);
-
        time_suspend();
 
        cpu_mcheck_disable();
@@ -1320,6 +1318,8 @@
        }
 
        printk("Prepare to bring CPU%d down...\n", cpu);
+
+       cpufreq_del_cpu(cpu);
 
        err = stop_machine_run(take_cpu_down, NULL, cpu);
        if (err < 0)

Attachment: s3_cpufreq_spinlock.patch
Description: s3_cpufreq_spinlock.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.