The NetBSD Project

CVS log for src/sys/dev/sysmon/swsensor.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / sysmon

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Feb 10 18:43:53 2024 UTC (2 years, 9 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Fix various typos in comments, log messages and documentation.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Dec 31 11:05:41 2021 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -7 lines
sysmon: Delete trailing whitespace.  No functional change intended.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jun 11 02:39:31 2020 UTC (6 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Update for proplib(3) API changes.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 8 20:18:13 2020 UTC (6 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Update for proplib(3) API changes.

Revision 1.15.18.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:12 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +6 -15 lines
Merge changes from current as of 20200406

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:09 2020 UTC (6 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -15 lines
Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:33 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +3 -3 lines
update from HEAD

Revision 1.13.16.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:13 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +3 -3 lines
Sync with HEAD

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Apr 25 23:55:23 2015 UTC (11 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: phil-wifi
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3 lines
Remove another debug printf() that snuck in.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Apr 23 23:23:01 2015 UTC (11 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -3 lines
Update module dependencies for all the existing modules that depend on sysmon components.

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:03 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +23 -5 lines
sync with head

Revision 1.12.8.1: download - view: text, markup, annotated - select for diffs
Wed Oct 17 21:13:38 2012 UTC (14 years, 1 month ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +23 -5 lines
Pull up following revision(s) (requested by pgoyette in ticket #546):
	sys/dev/sysmon/swsensor.c: revision 1.13
	share/man/man4/swsensor.4: revision 1.11
	share/man/man4/swsensor.4: revision 1.12
Add hw.swsensor.state variable for additional control capability.
Mention the new sysctl variable just created.
Drop trailing whitespace.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Aug 27 20:29:11 2012 UTC (14 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +23 -5 lines
Add hw.swsensor.state variable for additional control capability.

Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:09 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +146 -63 lines
Catchup with rmind-uvmplock merge.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jun 19 15:52:48 2011 UTC (15 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +34 -30 lines
Use {...} to prevent premature exit from initialization function - this
lets the atf tests run again.

Move validation of current value vs min/max into the refresh routine
where it will get checked every time, not just at initialization.

While here, do a little more housekeeping:
  - Retrieve numeric property value once
  - Ensure that a numeric-specified sensor type is valid
  - printout any unrecognized properties (DEBUG only)

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jun 19 04:08:48 2011 UTC (15 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Use correct routine to retrieve string value from prop-dictionary

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Jun 19 03:12:31 2011 UTC (15 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +138 -86 lines
Rather than requiring the user to know the internal encoding of sensor
types, allow the user to specify the type using the units description.

XXX Numeric specification is still permitted but will be removed soon.

Revision 1.7.6.3: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:26 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.7.6.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.6.2: +27 -0 lines
sync with head

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:39 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +29 -2 lines
Sync with HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jun 4 13:26:51 2011 UTC (15 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -10 lines
Remove ability to the value_avg since it no longer exists

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jun 4 02:02:55 2011 UTC (15 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +36 -2 lines
Enable creation of value_{max,min,avg} entries via the proplist, as well
as setting the ENVSYS_FPERCENT flag

Revision 1.7.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:08 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.7.6.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.1: +309 -0 lines
sync with head

Revision 1.7.6.1
Fri Dec 17 13:37:37 2010 UTC (15 years, 11 months ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.7: +0 -309 lines
file swsensor.c was added on branch rmind-uvmplock on 2011-03-05 20:54:08 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Dec 17 13:37:37 2010 UTC (15 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr, cherry-xenmp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5 lines
use aprint

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Dec 16 14:33:30 2010 UTC (15 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -2 lines
Also allow specification of sensor's initial value when it is loaded,
using "-i value=<value>".

Suggested by njoly@

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 11 04:13:03 2010 UTC (15 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +106 -7 lines
Enhance the swsensor(4) pseudo-device's capabilities to emulate more
sensor types

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:33 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.2: +10 -2 lines
Sync with HEAD.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Oct 23 11:24:16 2010 UTC (16 years ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -2 lines
Revert 1.2 apart from incorrect comment.  the devattach() routine
is of course still used by kernel&config pseudodev.

pointed out by jakllsch

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:17 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +195 -0 lines
Sync with HEAD (-D20101022).

Revision 1.3.2.1
Wed Oct 20 19:21:04 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.3: +0 -195 lines
file swsensor.c was added on branch uebayasi-xip on 2010-10-22 07:22:17 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Oct 20 19:21:04 2010 UTC (16 years ago) by pooka
Branches: MAIN
CVS tags: uebayasi-xip-base3
Branch point for: uebayasi-xip
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Set sensor state to valid upon refresh to make things generally work.

pgoyette ok

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Oct 20 18:50:46 2010 UTC (16 years ago) by pooka
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -14 lines
remove unused routine (per comment)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Oct 19 11:55:38 2010 UTC (16 years, 1 month ago) by pgoyette
Branches: MAIN
Add a new software-only sensor device.  This is intended for use as a
kernel module, and can be helpful to generate sysmon_envsys events
when creating/modifying powerd scripts.  This will also be used in an
upcoming series of atf tests for sysmon_envsys itself.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>