diff options
author | kn <kn@cvs.openbsd.org> | 2021-03-26 22:54:42 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2021-03-26 22:54:42 +0000 |
commit | f3d4b955daad15bf7a4742ca9485fba412522524 (patch) | |
tree | 6a25b80c044430a6ae1bb3bf6287aa3a1076e7e5 /sys/ntfs | |
parent | c289c5aef6e9bcbe0f9a31a02e049d24f09f6b32 (diff) |
Flag sensors as invalid on bogus reads
Follow-up to the previous commit:
This driver continues to report stale hw.sensors values when reading
them fails, which can easily be observed on a Pinebook Pro after
plugging in the AC cable, causing the hw.sensors.cwfg0.raw0 (battery
remaining minutes) value to jump considerably one or two times before
stalling and becoming incoherent with the rest.
Flag sensors invalid upfront in apm's fashion and mark them OK iff they
yield valid values; this is what other drivers such as rktemp(4) do,
but the consequence/intention of SENSOR_FINVALID is sysctl(8) and systat(8)
skipping such sensors (until AC gets plugged off again).
OK patrick
Diffstat (limited to 'sys/ntfs')
0 files changed, 0 insertions, 0 deletions