Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Add a new (dummy) event type so we can use it for fo...



details:   https://anonhg.NetBSD.org/src/rev/968df78c4c08
branches:  trunk
changeset: 780207:968df78c4c08
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Jul 15 18:31:35 2012 +0000

description:
Add a new (dummy) event type so we can use it for forcing sensors to be
refreshed even when the sensor is not being monitored.

diffstat:

 sys/sys/power.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 528ccadcc21d -r 968df78c4c08 sys/sys/power.h
--- a/sys/sys/power.h   Sun Jul 15 17:41:39 2012 +0000
+++ b/sys/sys/power.h   Sun Jul 15 18:31:35 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: power.h,v 1.16 2011/04/06 08:15:44 jruoho Exp $        */
+/*     $NetBSD: power.h,v 1.17 2012/07/15 18:31:35 pgoyette Exp $      */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -208,6 +208,13 @@
 #define PENVSYS_EVENT_CAPACITY         210
 
 /*
+ * The following pseudo-event is used to force refreshing of a
+ * sensor that provides rnd(4) entropy, even if the sensor is not
+ * otherwise being monitored.
+ */
+#define PENVSYS_EVENT_NULL             220
+
+/*
  * This structure defines the properties of an envsys event.
  */
 struct penvsys_state {



Home | Main Index | Thread Index | Old Index