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

[Xen-changelog] [xen-unstable] x86: Relax spinlock checks during shutdown or S3.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1235918157 0
# Node ID edd7f612ebe0bb4e69159e76435b0b59caaa539d
# Parent  9af46734ce70fcc7e89f3af1ace876652ec9478f
x86: Relax spinlock checks during shutdown or S3.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/acpi/power.c |    2 ++
 xen/arch/x86/shutdown.c   |    1 +
 2 files changed, 3 insertions(+)

diff -r 9af46734ce70 -r edd7f612ebe0 xen/arch/x86/acpi/power.c
--- a/xen/arch/x86/acpi/power.c Sun Mar 01 14:30:35 2009 +0000
+++ b/xen/arch/x86/acpi/power.c Sun Mar 01 14:35:57 2009 +0000
@@ -175,6 +175,7 @@ static int enter_state(u32 state)
     printk("Entering ACPI S%d state.\n", state);
 
     local_irq_save(flags);
+    spin_debug_disable();
 
     if ( (error = device_power_down()) )
     {
@@ -208,6 +209,7 @@ static int enter_state(u32 state)
     printk(XENLOG_INFO "Finishing wakeup from ACPI S%d state.", state);
 
  done:
+    spin_debug_enable();
     local_irq_restore(flags);
     console_end_sync();
     acpi_sleep_post(state);
diff -r 9af46734ce70 -r edd7f612ebe0 xen/arch/x86/shutdown.c
--- a/xen/arch/x86/shutdown.c   Sun Mar 01 14:30:35 2009 +0000
+++ b/xen/arch/x86/shutdown.c   Sun Mar 01 14:35:57 2009 +0000
@@ -302,6 +302,7 @@ void machine_restart(unsigned int delay_
 
     watchdog_disable();
     console_start_sync();
+    spin_debug_disable();
 
     local_irq_enable();
 

_______________________________________________
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®.