diff options
author | njl <njl@FreeBSD.org> | 2004-01-12 17:59:10 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-01-12 17:59:10 +0000 |
commit | cebe9a70d652f83f3acf45b389ae3488e36c8701 (patch) | |
tree | b574bbbe22b19b973285d44d7991789f93669342 | |
parent | 3d9095c462916c96386aa735463a90969117ecce (diff) | |
download | FreeBSD-src-cebe9a70d652f83f3acf45b389ae3488e36c8701.zip FreeBSD-src-cebe9a70d652f83f3acf45b389ae3488e36c8701.tar.gz |
Bite the bullet and uncomment the shutdown() in case we hit the _CRT or
_HOT temperatures. We have to do this at some point to keep from getting
imp(tm) melted hardware.
-rw-r--r-- | sys/dev/acpica/acpi_thermal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c index abfe1e2..7efec65 100644 --- a/sys/dev/acpica/acpi_thermal.c +++ b/sys/dev/acpica/acpi_thermal.c @@ -441,11 +441,11 @@ acpi_tz_monitor(void *Context) /* update temperature-related flags */ newflags = TZ_THFLAG_NONE; - if ((sc->tz_zone.psv != -1) && (temp >= sc->tz_zone.psv)) + if (sc->tz_zone.psv != -1 && temp >= sc->tz_zone.psv) newflags |= TZ_THFLAG_PSV; - if ((sc->tz_zone.hot != -1) && (temp >= sc->tz_zone.hot)) + if (sc->tz_zone.hot != -1 && temp >= sc->tz_zone.hot) newflags |= TZ_THFLAG_HOT; - if ((sc->tz_zone.crt != -1) && (temp >= sc->tz_zone.crt)) + if (sc->tz_zone.crt != -1 && temp >= sc->tz_zone.crt) newflags |= TZ_THFLAG_CRT; /* If the active cooling state has changed, we have to switch things. */ @@ -483,7 +483,7 @@ acpi_tz_monitor(void *Context) device_printf(sc->tz_dev, "WARNING - current temperature (%d.%dC) exceeds system limits\n", TZ_KELVTOC(sc->tz_temperature)); - /* shutdown_nice(RB_POWEROFF);*/ + shutdown_nice(RB_POWEROFF); } sc->tz_thflags = newflags; |