summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_acad.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-09-06 23:33:22 +0000
committermsmith <msmith@FreeBSD.org>2001-09-06 23:33:22 +0000
commit8ccf25b79d92ef50ecbf87958efe876624777974 (patch)
tree2b2dc49eb022b67c4fd51a725dfe0aadc72eaacf /sys/dev/acpica/acpi_acad.c
parentcfd7870aa20f6ddcfba6d3c2e370bdf69cb5d614 (diff)
downloadFreeBSD-src-8ccf25b79d92ef50ecbf87958efe876624777974.zip
FreeBSD-src-8ccf25b79d92ef50ecbf87958efe876624777974.tar.gz
Initialise the adapter status to an invalid state, so that the initial check
of the adapter object will always result in a change event. This fixes the problem where a laptop booted without an AC adapter ran at 100% CPU speed by default. Submitted by: "Christopher N . Harrell" <cnh@netvmg.com>
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r--sys/dev/acpica/acpi_acad.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index d55b809..a20d3ee 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -158,6 +158,7 @@ acpi_acad_attach(device_t dev)
}
/* Get initial status after whole system is up. */
+ sc->status = -1;
AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_get_status, dev);
return(0);
OpenPOWER on IntegriCloud