aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-05-03 19:00:50 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2018-05-03 19:00:50 +0000
commite787342e2540ff778e59af3a12fcf738ad66b5aa (patch)
tree040c4d298e16787061b99275e349ed1da754abd2 /sys/dev/acpica/acpi.c
parent2570e7c33fea8c385d15a74cd28ee43fc1a5bed7 (diff)
downloadsrc-e787342e2540ff778e59af3a12fcf738ad66b5aa.tar.gz
src-e787342e2540ff778e59af3a12fcf738ad66b5aa.zip
Redo r332918 with the ACPICA API and remove debug.acpi.suspend_deep_bounce.
AcpiOsEnterSleep() was meant to implement this feature. Reviewed by: avg
Notes
Notes: svn path=/head/; revision=333222
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 2e57400f2350..333ccbd28965 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -287,15 +287,10 @@ SYSCTL_INT(_debug_acpi, OID_AUTO, default_register_width, CTLFLAG_RDTUN,
/* Allow users to override quirks. */
TUNABLE_INT("debug.acpi.quirks", &acpi_quirks);
-static int acpi_susp_bounce;
+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.");
-int acpi_susp_deep_bounce;
-SYSCTL_INT(_debug_acpi, OID_AUTO, suspend_deep_bounce, CTLFLAG_RW,
- &acpi_susp_deep_bounce, 0, "Don't actually suspend, "
- "bail out just before entering the sleep state.");
-
/*
* ACPI can only be loaded as a module by the loader; activating it after
* system bootstrap time is not useful, and can be fatal to the system.
@@ -2952,10 +2947,6 @@ acpi_EnterSleepState(struct acpi_softc *sc, int state)
}
slp_state = ACPI_SS_DEV_SUSPEND;
- /* If testing device suspend only, back out of everything here. */
- if (acpi_susp_bounce)
- goto backout;
-
status = AcpiEnterSleepStatePrep(state);
if (ACPI_FAILURE(status)) {
device_printf(sc->acpi_dev, "AcpiEnterSleepStatePrep failed - %s\n",