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.
This commit is contained in:
parent
f0129ea88b
commit
220666153d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user