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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] x86: Initialize the ACPI "safe" power state to C1.
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Jul 2009 09:12:04 -0700
Delivery-date: Tue, 28 Jul 2009 09:15:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] x86: Initialize the ACPI "safe" power state to C1., Xen patchbot-3.4-testing <=