drm/amd/powerplay: adjust power state when set od_clk
authorLikun Gao <Likun.Gao@amd.com>
Wed, 23 Jan 2019 03:10:59 +0000 (11:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:00 +0000 (15:04 -0500)
commitc16df976a2fe2ea145bf20343efb3e74f073e9e7
treef5d61bf4e0395b23535e5989b7a894abd7878351
parente388cc474d361469126882f454cbd8881ab3b259
drm/amd/powerplay: adjust power state when set od_clk

Expose the function of adjust_power_state_dynamic to make it common to
other functions.
Add the operate of adjust powet state when set od percentage or
overdrive commit dpm table.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/vega20_ppt.c