Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi _ACx is for active cooling policy, using it for...



details:   https://anonhg.NetBSD.org/src/rev/8ec7f73a8e1e
branches:  trunk
changeset: 770084:8ec7f73a8e1e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 02 22:20:33 2011 +0000

description:
_ACx is for active cooling policy, using it for envsys temp 'warn max' doesn't
make sense

diffstat:

 sys/dev/acpi/acpi_tz.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r 2570453915a6 -r 8ec7f73a8e1e sys/dev/acpi/acpi_tz.c
--- a/sys/dev/acpi/acpi_tz.c    Sun Oct 02 22:10:10 2011 +0000
+++ b/sys/dev/acpi/acpi_tz.c    Sun Oct 02 22:20:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_tz.c,v 1.83 2011/07/16 15:45:24 jmcneill Exp $ */
+/* $NetBSD: acpi_tz.c,v 1.84 2011/10/02 22:20:33 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2003 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.83 2011/07/16 15:45:24 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.84 2011/10/02 22:20:33 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -836,7 +836,6 @@
                  sysmon_envsys_lim_t *limits, uint32_t *props)
 {
        struct acpitz_softc *sc = sme->sme_cookie;
-       int i;
 
        switch (edata->units) {
        case ENVSYS_STEMP:
@@ -848,14 +847,6 @@
                        *props |= PROP_CRITMAX;
                        limits->sel_critmax = ATZ2UKELVIN(sc->sc_zone.crt);
                }
-               for (i = 0; i < ATZ_NLEVELS; i++) {
-                       if (sc->sc_zone.ac[i] != ATZ_TMP_INVALID) {
-                               limits->sel_warnmax =
-                                   ATZ2UKELVIN(sc->sc_zone.ac[i]);
-                               *props |= PROP_WARNMAX;
-                               break;
-                       }
-               }
                break;
 
        case ENVSYS_SFANRPM:



Home | Main Index | Thread Index | Old Index