aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2007-09-20 16:27:44 -0400
committerLen Brown <len.brown@intel.com>2007-09-21 21:53:18 -0400
commit5a50fe709d527f31169263e36601dd83446d5744 (patch)
treec2b7cc75303b10b01151e142ab850691ec476440 /drivers/acpi/sleep
parentf216cc3748a3a22c2b99390fddcdafa0583791a2 (diff)
ACPI: suspend: consolidate handling of Sx states addendum
Make the S0 state be always reported as supported Signed-off: Frans Pop <elendil@planet.nl> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sleep')
-rw-r--r--drivers/acpi/sleep/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
index 638172fe6825..85633c585aab 100644
--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -401,9 +401,11 @@ int __init acpi_sleep_init(void)
401 if (acpi_disabled) 401 if (acpi_disabled)
402 return 0; 402 return 0;
403 403
404printk(KERN_INFO PREFIX "(supports"); 404 sleep_states[ACPI_STATE_S0] = 1;
405 printk(KERN_INFO PREFIX "(supports S0");
406
405#ifdef CONFIG_SUSPEND 407#ifdef CONFIG_SUSPEND
406 for (i = ACPI_STATE_S0; i < ACPI_STATE_S4; i++) { 408 for (i = ACPI_STATE_S1; i < ACPI_STATE_S4; i++) {
407 status = acpi_get_sleep_type_data(i, &type_a, &type_b); 409 status = acpi_get_sleep_type_data(i, &type_a, &type_b);
408 if (ACPI_SUCCESS(status)) { 410 if (ACPI_SUCCESS(status)) {
409 sleep_states[i] = 1; 411 sleep_states[i] = 1;