summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-10-19 20:38:21 +0000
committerjkim <jkim@FreeBSD.org>2010-10-19 20:38:21 +0000
commite8fd2e51b37c5299a1a7540aca2ce0a3a2765672 (patch)
treec5b8c9d21cade8fc4fe18c609eb8d0eff4daff4b /sys/dev/acpica
parentf0ce9e3f305fe6039937eade02551429beef30ac (diff)
downloadFreeBSD-src-e8fd2e51b37c5299a1a7540aca2ce0a3a2765672.zip
FreeBSD-src-e8fd2e51b37c5299a1a7540aca2ce0a3a2765672.tar.gz
Remove undocumented and stale debug.acpi.do_powerstate tunable. It was
added with hw.pci.do_powerstate but the PCI version was splitted into two separate tunables later and now this is completely stale. To make it worse, PCI devices enumerated in ACPI tree ignore this tunable as it is handled by a function in acpi_pci.c instead.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index c19748b..24982fe 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -254,12 +254,6 @@ TUNABLE_INT("debug.acpi.interpreter_slack", &acpi_interpreter_slack);
SYSCTL_INT(_debug_acpi, OID_AUTO, interpreter_slack, CTLFLAG_RDTUN,
&acpi_interpreter_slack, 1, "Turn on interpreter slack mode.");
-/* Power devices off and on in suspend and resume. XXX Remove once tested. */
-static int acpi_do_powerstate = 1;
-TUNABLE_INT("debug.acpi.do_powerstate", &acpi_do_powerstate);
-SYSCTL_INT(_debug_acpi, OID_AUTO, do_powerstate, CTLFLAG_RW,
- &acpi_do_powerstate, 1, "Turn off devices when suspending.");
-
/* Reset system clock while resuming. XXX Remove once tested. */
static int acpi_reset_clock = 1;
TUNABLE_INT("debug.acpi.reset_clock", &acpi_reset_clock);
@@ -668,9 +662,6 @@ acpi_set_power_children(device_t dev, int state)
struct pci_devinfo *dinfo;
int dstate, i, numdevs;
- if (!acpi_do_powerstate)
- return;
-
if (device_get_children(dev, &devlist, &numdevs) != 0)
return;
@@ -1493,9 +1484,6 @@ acpi_set_powerstate(device_t child, int state)
ACPI_HANDLE h;
ACPI_STATUS status;
- if (!acpi_do_powerstate)
- return (0);
-
h = acpi_get_handle(child);
if (state < ACPI_STATE_D0 || state > ACPI_D_STATES_MAX)
return (EINVAL);
OpenPOWER on IntegriCloud