diff options
author | 2025-07-21 09:59:40 +0900 | |
---|---|---|
committer | 2025-07-28 16:25:34 -0400 | |
commit | 9c2883057b3c861879b647f34e8bc448954e8729 (patch) | |
tree | 27136a777ebd3ee6566aa7ca8cdfc4e9fe380d28 /tools/perf/scripts/python | |
parent | drm/amdgpu: Avoid extra evict-restore process. (diff) | |
download | wireguard-linux-9c2883057b3c861879b647f34e8bc448954e8729.tar.xz wireguard-linux-9c2883057b3c861879b647f34e8bc448954e8729.zip |
drm/amd/display: fix initial backlight brightness calculation
DIV_ROUND_CLOSEST(x, 100) returns either 0 or 1 if 0<x<=100, so the
division needs to be performed after the multiplication and not the
other way around, to properly scale the value.
Fixes: 8b5f3a229a70 ("drm/amd/display: Fix default DC and AC levels")
Signed-off-by: Lauri Tirkkonen <lauri@hacktheplanet.fi>
Cc: stable@vger.kernel.org
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/aH2Q_HJvxKbW74vU@hacktheplanet.fi
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions