#include "internal.h"
#include "sleep.h"
---u8 wake_sleep_flags = ACPI_NO_OPTIONAL_METHODS;
---static unsigned int gts, bfs;
---static int set_param_wake_flag(const char *val, struct kernel_param *kp)
---{
--- int ret = param_set_int(val, kp);
---
--- if (ret)
--- return ret;
---
--- if (kp->arg == (const char *)>s) {
--- if (gts)
--- wake_sleep_flags |= ACPI_EXECUTE_GTS;
--- else
--- wake_sleep_flags &= ~ACPI_EXECUTE_GTS;
--- }
--- if (kp->arg == (const char *)&bfs) {
--- if (bfs)
--- wake_sleep_flags |= ACPI_EXECUTE_BFS;
--- else
--- wake_sleep_flags &= ~ACPI_EXECUTE_BFS;
--- }
--- return ret;
---}
---module_param_call(gts, set_param_wake_flag, param_get_int, >s, 0644);
---module_param_call(bfs, set_param_wake_flag, param_get_int, &bfs, 0644);
---MODULE_PARM_DESC(gts, "Enable evaluation of _GTS on suspend.");
---MODULE_PARM_DESC(bfs, "Enable evaluation of _BFS on resume".);
---
static u8 sleep_states[ACPI_S_STATE_COUNT];
- --static bool pwr_btn_event_pending;
static void acpi_sleep_tts_switch(u32 acpi_state)
{