Module Name:    src
Committed By:   pgoyette
Date:           Wed Dec 23 02:29:46 UTC 2009

Modified Files:
        src/sys/dev/acpi: acpi_tz.c

Log Message:
Since we're using the active cooling levels as warning threshold, we
should store the value in the correct location.  We're already setting
the correct flag bit.

Should resolve problem reported by Frank Wille on current-users...


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/acpi/acpi_tz.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/acpi_tz.c
diff -u src/sys/dev/acpi/acpi_tz.c:1.50 src/sys/dev/acpi/acpi_tz.c:1.51
--- src/sys/dev/acpi/acpi_tz.c:1.50	Sun Nov 29 18:08:22 2009
+++ src/sys/dev/acpi/acpi_tz.c	Wed Dec 23 02:29:46 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_tz.c,v 1.50 2009/11/29 18:08:22 uebayasi Exp $ */
+/* $NetBSD: acpi_tz.c,v 1.51 2009/12/23 02:29:46 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2003 Jared D. McNeill <jmcne...@invisible.ca>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.50 2009/11/29 18:08:22 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.51 2009/12/23 02:29:46 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -745,7 +745,7 @@
 		}
 		for (i = 0; i < ATZ_NLEVELS; i++) {
 			if (sc->sc_zone.ac[i] != ATZ_TMP_INVALID) {
-				limits->sel_critmax =
+				limits->sel_warnmax =
 				    ATZ2UKELVIN(sc->sc_zone.ac[i]);
 				limits->sel_flags |= PROP_WARNMAX;
 				break;

Reply via email to