diff options
author | msmith <msmith@FreeBSD.org> | 2001-07-07 01:46:40 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-07-07 01:46:40 +0000 |
commit | 99fb474bb87196a69d346c1dedaadca6cb238c01 (patch) | |
tree | accd62209041d7fb33895db6d89915506f76554a /sys/dev/acpica/acpi_acad.c | |
parent | e772f1b60ee96b030468f7c2b75d2173d54c09e0 (diff) | |
download | FreeBSD-src-99fb474bb87196a69d346c1dedaadca6cb238c01.zip FreeBSD-src-99fb474bb87196a69d346c1dedaadca6cb238c01.tar.gz |
Add support for system power profiles; select "performance" when AC power
is available and "economy" when it is not.
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r-- | sys/dev/acpica/acpi_acad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index 38fd7c2..85cd666 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -78,6 +78,9 @@ acpi_acad_get_status(void *context) if (bootverbose) { device_printf(dev,"%s\n",(sc->status) ? "On Line" : "Off Line"); } + + /* set system power profile based on AC adapter status */ + powerprofile_set_state(sc->status ? POWERPROFILE_PERFORMANCE : POWERPROFILE_ECONOMY); } static void |