summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorAbel Vesa <abel.vesa@linaro.org>2025-03-05 16:09:06 +0300
committerLee Jones <lee@kernel.org>2025-03-21 12:21:59 +0300
commit2528eec7da0ec58fcae6d12cfa79a622c933d86b (patch)
tree3bb1fee9ea5c80d92a588db63dd2184cc128fd52 /tools/perf/scripts/python/task-analyzer.py
parentb7881eacc07fdf50be3f33c662997541bb59366d (diff)
downloadlinux-2528eec7da0ec58fcae6d12cfa79a622c933d86b.tar.xz
leds: rgb: leds-qcom-lpg: Fix calculation of best period Hi-Res PWMs
When determining the actual best period by looping through all possible PWM configs, the resolution currently used is based on bit shift value which is off-by-one above the possible maximum PWM value allowed. So subtract one from the resolution before determining the best period so that the maximum duty cycle requested by the PWM user won't result in a value above the maximum allowed by the selected resolution. Cc: stable@vger.kernel.org # 6.4 Fixes: b00d2ed37617 ("leds: rgb: leds-qcom-lpg: Add support for high resolution PWM") Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Reviewed-by: Sebastian Reichel <sre@kernel.org> Link: https://lore.kernel.org/r/20250305-leds-qcom-lpg-fix-max-pwm-on-hi-res-v4-3-bfe124a53a9f@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions