Module Name:    src
Committed By:   snj
Date:           Sun Aug 30 03:05:19 UTC 2009

Modified Files:
        src/sys/dev/acpi [netbsd-5]: asus_acpi.c

Log Message:
Pull up following revision(s) (requested by jmcneill in ticket #891):
        sys/dev/acpi/asus_acpi.c: revision 1.10
Reading the fan speed is expensive, so set the undocumented SME_POLL_ONLY
flag on this sensor to ensure that the data is only refreshed on demand.


To generate a diff of this commit:
cvs rdiff -u -r1.6.4.3 -r1.6.4.4 src/sys/dev/acpi/asus_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/asus_acpi.c
diff -u src/sys/dev/acpi/asus_acpi.c:1.6.4.3 src/sys/dev/acpi/asus_acpi.c:1.6.4.4
--- src/sys/dev/acpi/asus_acpi.c:1.6.4.3	Sun Aug 30 03:03:33 2009
+++ src/sys/dev/acpi/asus_acpi.c	Sun Aug 30 03:05:19 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: asus_acpi.c,v 1.6.4.3 2009/08/30 03:03:33 snj Exp $ */
+/* $NetBSD: asus_acpi.c,v 1.6.4.4 2009/08/30 03:05:19 snj Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 Jared D. McNeill <jmcne...@invisible.ca>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asus_acpi.c,v 1.6.4.3 2009/08/30 03:03:33 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asus_acpi.c,v 1.6.4.4 2009/08/30 03:05:19 snj Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -159,6 +159,7 @@
 	sc->sc_sme->sme_name = device_xname(self);
 	sc->sc_sme->sme_cookie = sc;
 	sc->sc_sme->sme_refresh = asus_sensors_refresh;
+	sc->sc_sme->sme_flags = SME_POLL_ONLY;
 
 	if (sysmon_envsys_register(sc->sc_sme)) {
 		aprint_error_dev(self, "couldn't register with envsys\n");

Reply via email to