WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] solve spinlock bug in s3 cpufreq path
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] solve spinlock bug in s3 cpufreq path, Tian, Kevin <=