summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorStanislav Aleksandrov <lightofmysoul@gmail.com>2026-11-08 03:59:55 +0000
committerGuenter Roeck <linux@roeck-us.net>2026-11-08 17:45:32 -0800
commit33d58cbf2ab26bda81bc3052158d8b9867d5b9a6 (patch)
treed9ef2f5b5c62978c0f445d9ddc54d65f10d8bebc /tools/perf/scripts/python/bin/stackcollapse-report
parent95bddc5252a4c0a2ed9d62e7e53a3461265d9603 (diff)
hwmon: (max31760) Report 0 RPM before the first fan speed measurement
The tachometer count registers initialize to 0 until the first measurement cycle completes after power-on. To prevent division by zero, tach_to_rpm() clamped tach == 0 to 1, causing it to compute and report 3,000,000 RPM (60 * 100000 / 1 / 2). Return 0 RPM when tach == 0 instead. Fixes: 38b04ad02d0d ("drivers: hwmon: Add max31760 fan speed controller driver") Cc: stable@vger.kernel.org Signed-off-by: Stanislav Aleksandrov <lightofmysoul@gmail.com> Link: https://patch.msgid.link/20261108-max31760-fixes-v1-3-a61450463059@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions