diff options
author | Guenter Roeck <linux@roeck-us.net> | 2021-11-05 16:04:52 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-07-13 08:38:17 -0700 |
commit | 8f19501d87e0e79a50b60ead7e114ed5a8eea34e (patch) | |
tree | 2c12deb3f0b5974ba4183726bf5eb4a6c3a9317d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b2644494a4c7145a05af01bee1df8549a71efc20 (diff) |
hwmon: (lm90) Only re-read registers if volatile
When reading 16-bit volatile registers, the code uses a trick to
determine if a temperature is consistent: It reads the high part
of the register twice. If the values are the same, the code assumes
that the reading is consistent. If the value differs, the code
re-reads the second register as well and assumes that it now has
correct values.
This is only necessary for volatile registers. Add a parameter to
lm90_read16() to indicate if the register is volatile to avoid the
extra overhead for non-volatile registers.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions