summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2008-09-12 12:35:19 +0000
committermiod <miod@openbsd.org>2008-09-12 12:35:19 +0000
commit5622a274fc87c4b1e67206b8a094ce0215a0f3b2 (patch)
tree49892a4921f4b469165f133d4be02c73c7bdbfd5
parentRemove bzero/memset calls after pool_gets by passing the PR_ZERO (diff)
downloadwireguard-openbsd-5622a274fc87c4b1e67206b8a094ce0215a0f3b2.tar.xz
wireguard-openbsd-5622a274fc87c4b1e67206b8a094ce0215a0f3b2.zip
In acpitz_setfan(), try to send fan commands to ``power resources'' objects.
Makes a few hp laptops run cooler and quieter.
-rw-r--r--sys/dev/acpi/acpitz.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c
index 9b99ffe841d..f1a56860bce 100644
--- a/sys/dev/acpi/acpitz.c
+++ b/sys/dev/acpi/acpitz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpitz.c,v 1.27 2008/09/11 12:45:20 miod Exp $ */
+/* $OpenBSD: acpitz.c,v 1.28 2008/09/12 12:35:19 miod Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -248,7 +248,8 @@ acpitz_setfan(struct acpitz_softc *sc, int i, char *method)
if (ref->type == AML_OBJTYPE_OBJREF) {
ref = ref->v_objref.ref;
}
- if (ref->type != AML_OBJTYPE_DEVICE) {
+ if (ref->type != AML_OBJTYPE_DEVICE &&
+ ref->type != AML_OBJTYPE_POWERRSRC) {
printf("%s: %s[%d.%d] _PRO not a package\n",
DEVNAME(sc), name, x, y);
continue;