Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon One more callback of sme_refresh() routine ne...
details: https://anonhg.NetBSD.org/src/rev/8ac75d935a89
branches: trunk
changeset: 751490:8ac75d935a89
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Feb 05 17:44:27 2010 +0000
description:
One more callback of sme_refresh() routine needs to check first that
there is a routine to be called!
diffstat:
sys/dev/sysmon/sysmon_envsys.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 907850c55834 -r 8ac75d935a89 sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c Fri Feb 05 17:23:47 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c Fri Feb 05 17:44:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys.c,v 1.93 2010/01/31 22:53:56 martin Exp $ */
+/* $NetBSD: sysmon_envsys.c,v 1.94 2010/02/05 17:44:27 pgoyette Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.93 2010/01/31 22:53:56 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.94 2010/02/05 17:44:27 pgoyette Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -987,7 +987,8 @@
mutex_enter(&sme->sme_mtx);
sysmon_envsys_acquire(sme, true);
TAILQ_FOREACH(edata, &sme->sme_sensors_list, sensors_head)
- (*sme->sme_refresh)(sme, edata);
+ if ((sme->sme_flags & SME_DISABLE_REFRESH) == 0)
+ (*sme->sme_refresh)(sme, edata);
sysmon_envsys_release(sme, true);
mutex_exit(&sme->sme_mtx);
}
Home |
Main Index |
Thread Index |
Old Index