From 8ccf25b79d92ef50ecbf87958efe876624777974 Mon Sep 17 00:00:00 2001 From: msmith Date: Thu, 6 Sep 2001 23:33:22 +0000 Subject: 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" --- sys/dev/acpica/acpi_acad.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/acpica') 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); -- cgit v1.1