]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use local variable instead of caching global
authorLeo Li <sunpeng.li@amd.com>
Tue, 13 Nov 2018 20:24:20 +0000 (15:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:40 +0000 (15:04 -0500)
commited3de005c36bb1d8b0242157c77f18cb7474a9d6
treebf6248c9cd3c399e85384e21b471817b31a115e3
parent437f41dfdffd31a4df154a5401e060e0f285e5cd
drm/amd/display: Use local variable instead of caching global

[Why]
context->bw.dce.dispclk_khz is being cached into unpatched_clock, then
restored at end of function call. This is needlessly complex

[How]
Instead, use a local patched_clock variable. Leave
context->bw.dce.dispclk_khz alone.

No functional change is intended.

Signed-off-by: David Francis <david.francis@amd.com>
Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c