Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Don't set the FVALID_{MAX, MIN} flags since thes...
details: https://anonhg.NetBSD.org/src/rev/c9eeed279c43
branches: trunk
changeset: 765809:c9eeed279c43
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jun 06 17:49:41 2011 +0000
description:
Don't set the FVALID_{MAX,MIN} flags since these values are not
min/max legal values. The values are alarms limits, and they're
already being tracked properly with the flag settings in *props
diffstat:
sys/dev/acpi/acpi_tz.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 11e6ec6dac33 -r c9eeed279c43 sys/dev/acpi/acpi_tz.c
--- a/sys/dev/acpi/acpi_tz.c Mon Jun 06 17:30:32 2011 +0000
+++ b/sys/dev/acpi/acpi_tz.c Mon Jun 06 17:49:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_tz.c,v 1.79 2011/02/16 09:05:12 jruoho Exp $ */
+/* $NetBSD: acpi_tz.c,v 1.80 2011/06/06 17:49:41 pgoyette 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.79 2011/02/16 09:05:12 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.80 2011/06/06 17:49:41 pgoyette Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -850,12 +850,10 @@
if (sc->sc_zone.fanmin != ATZ_TMP_INVALID) {
*props |= PROP_WARNMIN;
limits->sel_warnmin = sc->sc_zone.fanmin;
- sc->sc_fan_sensor.flags |= ENVSYS_FVALID_MIN;
}
if (sc->sc_zone.fanmax != ATZ_TMP_INVALID) {
*props |= PROP_WARNMAX;
limits->sel_warnmax = sc->sc_zone.fanmax;
- sc->sc_fan_sensor.flags |= ENVSYS_FVALID_MAX;
}
break;
}
Home |
Main Index |
Thread Index |
Old Index