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

[Xen-changelog] [xen-3.4-testing] x86: Initialize the ACPI "safe" power state to C1.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1248796794 -3600
# Node ID cde052f76db16c2d29e0256af0b6e317e288eab4
# Parent  bafbc9bc22895b7b1fab2fd02cc1762f8939af9f
x86: Initialize the ACPI "safe" power state to C1.

Initialize the ACPI "safe" power state to C1.  This avoids a null
dereference on BIOS tables which define C3 but not C2 or C1.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
xen-unstable changeset:   19991:49ea12238cf9
xen-unstable date:        Tue Jul 28 16:34:16 2009 +0100
---
 xen/arch/x86/acpi/cpu_idle.c |    1 +
 1 files changed, 1 insertion(+)

diff -r bafbc9bc2289 -r cde052f76db1 xen/arch/x86/acpi/cpu_idle.c
--- a/xen/arch/x86/acpi/cpu_idle.c      Tue Jul 28 16:57:22 2009 +0100
+++ b/xen/arch/x86/acpi/cpu_idle.c      Tue Jul 28 16:59:54 2009 +0100
@@ -413,6 +413,7 @@ static int init_cx_pminfo(struct acpi_pr
     acpi_power->states[ACPI_STATE_C1].valid = 1;
 
     acpi_power->count = 2;
+    acpi_power->safe_state = &acpi_power->states[ACPI_STATE_C1];
 
     return 0;
 }

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