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

[Xen-changelog] [xen-unstable] x86: Fix mwait usage when doing cpu offline



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1298539961 0
# Node ID 6d451b9cbeadb922ec7ebcb8ec916a089a341039
# Parent  13a7d1f7f62cfcdfd256bcd9c4f17876c19c827f
x86: Fix mwait usage when doing cpu offline

When cpu is offlined, it cannot access per cpu variable at all.
This patch avoids using per_cpu variable inside play_dead.

Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx>
Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
---


diff -r 13a7d1f7f62c -r 6d451b9cbead xen/arch/x86/acpi/cpu_idle.c
--- a/xen/arch/x86/acpi/cpu_idle.c      Mon Feb 21 09:11:57 2011 +0000
+++ b/xen/arch/x86/acpi/cpu_idle.c      Thu Feb 24 09:32:41 2011 +0000
@@ -569,7 +569,8 @@
         {
             case ACPI_CSTATE_EM_FFH:
                 /* Not treat interrupt as break event */
-                mwait_idle_with_hints(cx->address, 0);
+                __monitor((void *)&mwait_wakeup(smp_processor_id()), 0, 0);
+                __mwait(cx->address, 0);
                 break;
             case ACPI_CSTATE_EM_SYSIO:
                 inb(cx->address);

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


 


Rackspace

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