diff options
| author | 2026-08-20 15:04:48 +0100 | |
|---|---|---|
| committer | 2026-08-20 15:24:15 +0100 | |
| commit | fd4227f03546c323b5b21568f727233e9792d298 (patch) | |
| tree | f3ca41d02f0d27650e7bfe00da6985eb55a57b96 /scripts/Makefile.thinlto | |
| parent | drm/panfrost: Check another bo field for cache option query (diff) | |
drm/panfrost: Prevent division by 0
When updating and debug-printing devfreq stats, in the very unlikely
off-chance that total device time is less than 100 ns, division by 0
would happen. Fix the divisor when relevant and rearrange operands.
Reported-by: Claude <noreply@anthropic.com>
Closes: https://gitlab.freedesktop.org/panfrost/linux/-/work_items/88
Fixes: f3ba91228e8e ("drm/panfrost: Add initial panfrost driver")
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patch.msgid.link/20260820-b4-panfrost-fixes-v1-2-1b2c2376f4bc@collabora.com
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
