ACPI: suspend: consolidate handling of Sx states addendum
PATCH 1/1 ACPI: suspend: consolidate handling of Sx states addendum
From: Frans Pop <[email protected]>
Date: Thu Sep 20 22:27:44 2007 +0200
Make the S0 state be always reported as supported
Signed-off: Frans Pop <[email protected]>
Signed-off-by Rafael J. Wysocki <[email protected]>
--- drivers/acpi/sleep/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/acpi/sleep/main.c +4 -2
@@ -424,9 +424,11 @@ int __init acpi_sleep_init(void)if (acpi_disabled)return 0 ; -printk(KERN_INFO PREFIX "(supports"); + sleep_states[ACPI_STATE_S0 ] =1 ; + printk(KERN_INFO PREFIX "(supports S0"); +#ifdef CONFIG_SUSPEND -for (i =ACPI_STATE_S0 ; i <ACPI_STATE_S4 ; i++) { +for (i =ACPI_STATE_S1 ; i <ACPI_STATE_S4 ; i++) { status =acpi_get_sleep_type_data (i, &type_a, &type_b);if (ACPI_SUCCESS (status)) { sleep_states[i] =1 ;
Applied.
thanks,
-Len
Quoted 34 lines · Rafael J. Wysocki
From: Frans Pop <[email protected]>
Date: Thu Sep 20 22:27:44 2007 +0200Make the S0 state be always reported as supported
Signed-off: Frans Pop <[email protected]>
Signed-off-by Rafael J. Wysocki <[email protected]>--- drivers/acpi/sleep/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)Index:
linux-2.6.23-rc7/drivers/acpi/sleep/main.c
===================================================================drivers/acpi/sleep/main.c +4
-3@@ -424,9 +424,11 @@ int __init acpi_sleep_init(void)if (acpi_disabled)return 0 ; -printk(KERN_INFO PREFIX "(supports"); + sleep_states[ACPI_STATE_S0 ] =1 ; + printk(KERN_INFO PREFIX "(supports S0"); +#ifdef CONFIG_SUSPEND -for (i =ACPI_STATE_S0 ; i <ACPI_STATE_S4 ; i++) { +for (i =ACPI_STATE_S1 ; i <ACPI_STATE_S4 ; i++) { status =acpi_get_sleep_type_data (i, &type_a, &type_b);if (ACPI_SUCCESS (status)) { sleep_states[i] =1 ; -To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html