diff options
| -rw-r--r-- | drivers/acpi/sleep.c | 29 | ||||
| -rw-r--r-- | drivers/watchdog/Kconfig | 1 |
2 files changed, 7 insertions, 23 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index deb0ff78eba8..54abb26b7366 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
| @@ -47,32 +47,15 @@ static void acpi_sleep_tts_switch(u32 acpi_state) | |||
| 47 | } | 47 | } |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | static void acpi_sleep_pts_switch(u32 acpi_state) | 50 | static int tts_notify_reboot(struct notifier_block *this, |
| 51 | { | ||
| 52 | acpi_status status; | ||
| 53 | |||
| 54 | status = acpi_execute_simple_method(NULL, "\\_PTS", acpi_state); | ||
| 55 | if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { | ||
| 56 | /* | ||
| 57 | * OS can't evaluate the _PTS object correctly. Some warning | ||
| 58 | * message will be printed. But it won't break anything. | ||
| 59 | */ | ||
| 60 | printk(KERN_NOTICE "Failure in evaluating _PTS object\n"); | ||
| 61 | } | ||
| 62 | } | ||
| 63 | |||
| 64 | static int sleep_notify_reboot(struct notifier_block *this, | ||
| 65 | unsigned long code, void *x) | 51 | unsigned long code, void *x) |
| 66 | { | 52 | { |
| 67 | acpi_sleep_tts_switch(ACPI_STATE_S5); | 53 | acpi_sleep_tts_switch(ACPI_STATE_S5); |
| 68 | |||
| 69 | acpi_sleep_pts_switch(ACPI_STATE_S5); | ||
| 70 | |||
| 71 | return NOTIFY_DONE; | 54 | return NOTIFY_DONE; |
| 72 | } | 55 | } |
| 73 | 56 | ||
| 74 | static struct notifier_block sleep_notifier = { | 57 | static struct notifier_block tts_notifier = { |
| 75 | .notifier_call = sleep_notify_reboot, | 58 | .notifier_call = tts_notify_reboot, |
| 76 | .next = NULL, | 59 | .next = NULL, |
| 77 | .priority = 0, | 60 | .priority = 0, |
| 78 | }; | 61 | }; |
| @@ -916,9 +899,9 @@ int __init acpi_sleep_init(void) | |||
| 916 | pr_info(PREFIX "(supports%s)\n", supported); | 899 | pr_info(PREFIX "(supports%s)\n", supported); |
| 917 | 900 | ||
| 918 | /* | 901 | /* |
| 919 | * Register the sleep_notifier to reboot notifier list so that the _TTS | 902 | * Register the tts_notifier to reboot notifier list so that the _TTS |
| 920 | * and _PTS object can also be evaluated when the system enters S5. | 903 | * object can also be evaluated when the system enters S5. |
| 921 | */ | 904 | */ |
| 922 | register_reboot_notifier(&sleep_notifier); | 905 | register_reboot_notifier(&tts_notifier); |
| 923 | return 0; | 906 | return 0; |
| 924 | } | 907 | } |
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index fdd3228e0678..3eb58cb51e56 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
| @@ -155,6 +155,7 @@ config TANGOX_WATCHDOG | |||
| 155 | config WDAT_WDT | 155 | config WDAT_WDT |
| 156 | tristate "ACPI Watchdog Action Table (WDAT)" | 156 | tristate "ACPI Watchdog Action Table (WDAT)" |
| 157 | depends on ACPI | 157 | depends on ACPI |
| 158 | select WATCHDOG_CORE | ||
| 158 | select ACPI_WATCHDOG | 159 | select ACPI_WATCHDOG |
| 159 | help | 160 | help |
| 160 | This driver adds support for systems with ACPI Watchdog Action | 161 | This driver adds support for systems with ACPI Watchdog Action |
