diff options
author | 2010-04-20 19:44:07 +0000 | |
---|---|---|
committer | 2010-04-20 19:44:07 +0000 | |
commit | 0bb7dfbaadaae5f8a4574667ecacf48f71bf36a9 (patch) | |
tree | 193006b9d0fa24ecf94541e3cd569bf210153381 /sys | |
parent | Document ``size'' setting; OK gilles@ (diff) | |
download | wireguard-openbsd-0bb7dfbaadaae5f8a4574667ecacf48f71bf36a9.tar.xz wireguard-openbsd-0bb7dfbaadaae5f8a4574667ecacf48f71bf36a9.zip |
Add "frequency" type for sensors. (and teach userland how to print that
type). Measured in Hz.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/sensors.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/sensors.h b/sys/sys/sensors.h index 64efee53b4e..9f8aaed5ad8 100644 --- a/sys/sys/sensors.h +++ b/sys/sys/sensors.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.h,v 1.26 2010/04/15 04:57:28 yuo Exp $ */ +/* $OpenBSD: sensors.h,v 1.27 2010/04/20 19:44:07 oga Exp $ */ /* * Copyright (c) 2003, 2004 Alexander Yurchenko <grange@openbsd.org> @@ -47,6 +47,7 @@ enum sensor_type { SENSOR_DRIVE, /* disk */ SENSOR_TIMEDELTA, /* system time error (nSec) */ SENSOR_HUMIDITY, /* humidity (m%RH) */ + SENSOR_FREQ, /* frequency (Hz) */ SENSOR_MAX_TYPES }; @@ -68,6 +69,7 @@ static const char * const sensor_type_s[SENSOR_MAX_TYPES + 1] = { "drive", "timedelta", "humidity", + "frequency", "undefined" }; #endif /* !_KERNEL */ |