summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-08-16 20:54:52 +0000
committerjkim <jkim@FreeBSD.org>2012-08-16 20:54:52 +0000
commit7d706dc46f20aa3d7d386cd3f3df8e786e35e3cf (patch)
treea652303191b07ca59b5281e3606555d7db951183 /sys/dev/acpica
parentef6535e51ea1bac50944a3194c4e3ee845e9b696 (diff)
parent08e6f22ac3350a67c38e9b42b5dce2a7d5fa08b4 (diff)
downloadFreeBSD-src-7d706dc46f20aa3d7d386cd3f3df8e786e35e3cf.zip
FreeBSD-src-7d706dc46f20aa3d7d386cd3f3df8e786e35e3cf.tar.gz
Merge ACPICA 20120816.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c16
-rw-r--r--sys/dev/acpica/acpivar.h5
2 files changed, 4 insertions, 17 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 56f4fdb..cfe08ed 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -97,9 +97,6 @@ struct mtx acpi_mutex;
/* Bitmap of device quirks. */
int acpi_quirks;
-/* Optional ACPI methods for suspend and resume, e.g., _GTS and _BFS. */
-int acpi_sleep_flags;
-
/* Supported sleep states. */
static BOOLEAN acpi_sleep_states[ACPI_S_STATE_COUNT];
@@ -292,11 +289,6 @@ SYSCTL_INT(_debug_acpi, OID_AUTO, reset_clock, CTLFLAG_RW,
/* Allow users to override quirks. */
TUNABLE_INT("debug.acpi.quirks", &acpi_quirks);
-/* Execute optional ACPI methods for suspend and resume. */
-TUNABLE_INT("debug.acpi.sleep_flags", &acpi_sleep_flags);
-SYSCTL_INT(_debug_acpi, OID_AUTO, sleep_flags, CTLFLAG_RW | CTLFLAG_TUN,
- &acpi_sleep_flags, 0, "Execute optional ACPI methods for suspend/resume.");
-
static int acpi_susp_bounce;
SYSCTL_INT(_debug_acpi, OID_AUTO, suspend_bounce, CTLFLAG_RW,
&acpi_susp_bounce, 0, "Don't actually suspend, just test devices.");
@@ -1985,7 +1977,7 @@ acpi_shutdown_final(void *arg, int howto)
}
device_printf(sc->acpi_dev, "Powering system off\n");
intr = intr_disable();
- status = AcpiEnterSleepState(ACPI_STATE_S5, acpi_sleep_flags);
+ status = AcpiEnterSleepState(ACPI_STATE_S5);
if (ACPI_FAILURE(status)) {
intr_restore(intr);
device_printf(sc->acpi_dev, "power-off failed - %s\n",
@@ -2750,7 +2742,7 @@ acpi_EnterSleepState(struct acpi_softc *sc, int state)
if (state != ACPI_STATE_S1) {
sleep_result = acpi_sleep_machdep(sc, state);
acpi_wakeup_machdep(sc, state, sleep_result, 0);
- AcpiLeaveSleepStatePrep(state, acpi_sleep_flags);
+ AcpiLeaveSleepStatePrep(state);
intr_restore(intr);
/* call acpi_wakeup_machdep() again with interrupt enabled */
@@ -2763,8 +2755,8 @@ acpi_EnterSleepState(struct acpi_softc *sc, int state)
if (state == ACPI_STATE_S4)
AcpiEnable();
} else {
- status = AcpiEnterSleepState(state, acpi_sleep_flags);
- AcpiLeaveSleepStatePrep(state, acpi_sleep_flags);
+ status = AcpiEnterSleepState(state);
+ AcpiLeaveSleepStatePrep(state);
intr_restore(intr);
if (ACPI_FAILURE(status)) {
device_printf(sc->acpi_dev, "AcpiEnterSleepState failed - %s\n",
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 4ef92b5..81cff16 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -215,11 +215,6 @@ extern int acpi_quirks;
#define ACPI_Q_MADT_IRQ0 (1 << 2)
/*
- * Sleep flags. See actypes.h for available flags.
- */
-extern int acpi_sleep_flags;
-
-/*
* Note that the low ivar values are reserved to provide
* interface compatibility with ISA drivers which can also
* attach to ACPI.
OpenPOWER on IntegriCloud