From: Tim Deegan Subject: [PATCH] Initialize the ACPI "safe" power state to C1. Date: Mon, 27 Jul 2009 15:42:24 +0100 Message-ID: <20090727144224.GH5235@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline 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 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: attachment; filename="acpi-cx-safe-state" diff -r 8af26fef898c xen/arch/x86/acpi/cpu_idle.c --- a/xen/arch/x86/acpi/cpu_idle.c Fri Jul 24 12:08:54 2009 +0100 +++ b/xen/arch/x86/acpi/cpu_idle.c Mon Jul 27 15:41:44 2009 +0100 @@ -442,6 +442,7 @@ acpi_power->states[ACPI_STATE_C1].valid = 1; acpi_power->count = 2; + acpi_power->safe_state = &acpi_power->states[ACPI_STATE_C1]; return 0; } --Kj7319i9nmIyA2yE Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Kj7319i9nmIyA2yE--