diff options
author | jkim <jkim@FreeBSD.org> | 2010-10-19 20:38:21 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-10-19 20:38:21 +0000 |
commit | e8fd2e51b37c5299a1a7540aca2ce0a3a2765672 (patch) | |
tree | c5b8c9d21cade8fc4fe18c609eb8d0eff4daff4b /sys/dev/acpica/acpi.c | |
parent | f0ce9e3f305fe6039937eade02551429beef30ac (diff) | |
download | FreeBSD-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/acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi.c | 12 |
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); |