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>
This commit is contained in:
Mike Smith 2001-09-06 23:33:22 +00:00
parent 67e4fc622a
commit 1dffb34a9a

View File

@ -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);