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/ia64 | |
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/ia64')
-rw-r--r-- | sys/ia64/acpica/acpi_wakeup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/ia64/acpica/acpi_wakeup.c b/sys/ia64/acpica/acpi_wakeup.c index c81c3b3..ae98ae0 100644 --- a/sys/ia64/acpica/acpi_wakeup.c +++ b/sys/ia64/acpica/acpi_wakeup.c @@ -39,6 +39,13 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) return (0); } +int +acpi_wakeup_machdep(struct acpi_softc *sc, int state, + int sleep_result, int intr_enabled) +{ + return (0); +} + void acpi_install_wakeup_handler(struct acpi_softc *sc) { |