Skip to contentSkip to conversation

Initialize the ACPI "safe" power state to C1.

PATCH New Tim Deegan 1 participant 1 message Jul 27, 2009

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 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.

xen/arch/x86/acpi/cpu_idle.c +1 -0
diff -r 8af26fef898c xen/arch/x86/acpi/cpu_idle.c
@@ -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;
 }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel