summaryrefslogtreecommitdiff
path: root/sys/ntfs
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2021-03-26 22:54:42 +0000
committerkn <kn@cvs.openbsd.org>2021-03-26 22:54:42 +0000
commitf3d4b955daad15bf7a4742ca9485fba412522524 (patch)
tree6a25b80c044430a6ae1bb3bf6287aa3a1076e7e5 /sys/ntfs
parentc289c5aef6e9bcbe0f9a31a02e049d24f09f6b32 (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