aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-05-26 08:40:21 -0700
committerGuenter Roeck <linux@roeck-us.net>2021-06-17 04:21:46 -0700
commit1814c4e84de2a89d1c2e1e9bbd241240561075a4 (patch)
treefb83823204e878cafb36d6a7b9f2a8f9c81b5867 /tools/perf/scripts/python/exported-sql-viewer.py
parent2013607b85f03ff24a5a19933705905a1b324a31 (diff)
downloadlinux-1814c4e84de2a89d1c2e1e9bbd241240561075a4.tar.gz
linux-1814c4e84de2a89d1c2e1e9bbd241240561075a4.tar.bz2
linux-1814c4e84de2a89d1c2e1e9bbd241240561075a4.zip
hwmon: (max31790) Detect and report zero fan speed
If a fan is not running or not connected, of if fan monitoring is disabled, the fan count register returns a fixed value of 0xffe0. So far this is then translated to a RPM value larger than 0. Since this is misleading and does not really make much sense, report a fan RPM of 0 in this situation. Cc: Jan Kundrát <jan.kundrat@cesnet.cz> Cc: Václav Kubernát <kubernat@cesnet.cz> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Václav Kubernát <kubernat@cesnet.cz> Link: https://lore.kernel.org/r/20210526154022.3223012-7-linux@roeck-us.net
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions