Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Set the FMONNOTSUPP flag for each indiv...
details: https://anonhg.NetBSD.org/src/rev/18ad61a8dd7d
branches: trunk
changeset: 752512:18ad61a8dd7d
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sun Feb 28 12:40:46 2010 +0000
description:
Set the FMONNOTSUPP flag for each individual sensor, and add the
FMONLIMITS flag so the sensor is actually monitored and events can
be generated.
As discussed with martin@ in private email.
diffstat:
sys/arch/sparc64/dev/pcf8591_envctrl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 7687d83257a5 -r 18ad61a8dd7d sys/arch/sparc64/dev/pcf8591_envctrl.c
--- a/sys/arch/sparc64/dev/pcf8591_envctrl.c Sun Feb 28 11:49:44 2010 +0000
+++ b/sys/arch/sparc64/dev/pcf8591_envctrl.c Sun Feb 28 12:40:46 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcf8591_envctrl.c,v 1.1 2010/02/28 11:49:44 martin Exp $ */
+/* $NetBSD: pcf8591_envctrl.c,v 1.2 2010/02/28 12:40:46 pgoyette Exp $ */
/* $OpenBSD: pcf8591_envctrl.c,v 1.6 2007/10/25 21:17:20 kettenis Exp $ */
/*
@@ -136,6 +136,7 @@
sensor = &sc->sc_channels[sc->sc_nchan].chan_sensor;
sensor->units = ENVSYS_STEMP;
+ sensor->flags |= ENVSYS_FMONLIMITS | ENVSYS_FMONNOTSUPP;
strlcpy(sensor->desc, desc, sizeof(sensor->desc));
if (strncmp(desc, "CPU", 3) == 0)
@@ -175,7 +176,6 @@
sc->sc_sme = sysmon_envsys_create();
sc->sc_sme->sme_name = device_xname(self);
sc->sc_sme->sme_cookie = sc;
- sc->sc_sme->sme_flags |= ENVSYS_FMONNOTSUPP;
sc->sc_sme->sme_refresh = ecadc_refresh;
sc->sc_sme->sme_get_limits = ecadc_get_limits;
Home |
Main Index |
Thread Index |
Old Index