int acpi_is_wakeup(void) { acpi_handoff_wakeup(); /* Both resume from S2 and resume from S3 restart at CPU reset */ return (acpi_slp_type == 3 || acpi_slp_type == 2); }
int acpi_is_wakeup_s3(void) { acpi_handoff_wakeup(); return (acpi_slp_type == 3); }
int acpi_is_wakeup_s4(void) { acpi_handoff_wakeup(); return (acpi_slp_type == ACPI_S4); }