diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2012-06-01 15:26:32 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2012-06-01 15:26:32 +0000 |
commit | 9cbcc3c49217bb72870e849e6d29f60a7f7523f4 (patch) | |
tree | 67744bb6bd77bbf3e84cf3f6921faa49fe802486 /sys/dev/acpica/acpivar.h | |
parent | d642fa7a2f76eb02a58d652c2601150ccd82da42 (diff) | |
download | FreeBSD-src-9cbcc3c49217bb72870e849e6d29f60a7f7523f4.zip FreeBSD-src-9cbcc3c49217bb72870e849e6d29f60a7f7523f4.tar.gz |
Call AcpiLeaveSleepStatePrep() in interrupt disabled context
(described in ACPICA source code).
- Move intr_disable() and intr_restore() from acpi_wakeup.c to acpi.c
and call AcpiLeaveSleepStatePrep() in interrupt disabled context.
- Add acpi_wakeup_machdep() to execute wakeup MD procedures and call
it twice in interrupt disabled/enabled context (ia64 version is
just dummy).
- Rename wakeup_cpus variable in acpi_sleep_machdep() to suspcpus in
order to be shared by acpi_sleep_machdep() and acpi_wakeup_machdep().
- Move identity mapping related code to acpi_install_wakeup_handler()
(i386 version) for preparation of x86/acpica/acpi_wakeup.c
(MFC candidate).
Reviewed by: jkim@
MFC after: 2 days
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index a1892ea..a469588 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -439,6 +439,8 @@ int acpi_disabled(char *subsys); int acpi_machdep_init(device_t dev); void acpi_install_wakeup_handler(struct acpi_softc *sc); int acpi_sleep_machdep(struct acpi_softc *sc, int state); +int acpi_wakeup_machdep(struct acpi_softc *sc, int state, + int sleep_result, int intr_enabled); int acpi_table_quirks(int *quirks); int acpi_machdep_quirks(int *quirks); |