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)
commit8d25a560b877563d7a8c93a07140767d8959a7cd
treebf6248c9cd3c399e85384e21b471817b31a115e3
parent38684e46ef6622f25f141727fd9a9733b43eaf55
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