Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sysmon When checking current sensor value vs limits, ...



details:   https://anonhg.NetBSD.org/src/rev/376c8b38a4ae
branches:  trunk
changeset: 752091:376c8b38a4ae
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Feb 13 19:34:14 2010 +0000

description:
When checking current sensor value vs limits, check the correct set of
flags to determine which limits are present.

diffstat:

 sys/dev/sysmon/sysmon_envsys_events.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0e063315a665 -r 376c8b38a4ae sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c     Sat Feb 13 11:55:48 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c     Sat Feb 13 19:34:14 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.79 2010/02/05 19:22:25 jruoho Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.80 2010/02/13 19:34:14 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.79 2010/02/05 19:22:25 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.80 2010/02/13 19:34:14 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -696,7 +696,7 @@
        case PENVSYS_EVENT_LIMITS:
        case PENVSYS_EVENT_CAPACITY:
 #define        __EXCEED_LIM(valid, lim, rel) \
-               ((edata->limits.sel_flags & (valid)) && \
+               ((edata->upropset & (valid)) && \
                 (edata->value_cur rel (edata->limits.lim)))
 
                if ((edata->limits.sel_flags & PROP_DRIVER_LIMITS) == 0) {



Home | Main Index | Thread Index | Old Index