diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2016-05-24 04:37:40 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2016-05-24 04:37:40 +0000 |
commit | 47efc506ba742b8c6d37b14848a2dac9769d917f (patch) | |
tree | ffcc30ee5a1648f71dafbd2d0181db893a66dd4d | |
parent | eff759a49d210eb23222e3c158984bfe8d7a854b (diff) |
Disabling active cooling trip points when we lack the right method to operate.
Problem reported by James Hastings.
ok dcoppa@ mlarkin@
-rw-r--r-- | sys/dev/acpi/acpitz.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c index f27bae71051..45e709b2358 100644 --- a/sys/dev/acpi/acpitz.c +++ b/sys/dev/acpi/acpitz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitz.c,v 1.50 2016/04/26 09:42:57 semarie Exp $ */ +/* $OpenBSD: acpitz.c,v 1.51 2016/05/24 04:37:39 semarie Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -287,6 +287,12 @@ acpitz_setfan(struct acpitz_softc *sc, int i, char *method) name, x); aml_freevalue(&res1); x++; + + /* + * This fan lacks the right method to operate: + * disabling active cooling trip points. + */ + sc->sc_ac[i] = -1; continue; } if (res1.type != AML_OBJTYPE_PACKAGE) { |