OSDN Git Service

drm/amd/powerplay: simplify the code of [get|set]_activity_monitor_coeff
authorKevin Wang <kevin1.wang@amd.com>
Mon, 8 Apr 2019 08:29:49 +0000 (16:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:49:02 +0000 (13:49 -0500)
commit0e4f087ba2fe598a0add8b7cb2a3720e31ace1ed
treed5a5d86129c78c9e95e11aec8e705c50cd4fa139
parent4825d8d6a0fe689bde668140600663f2c246e88f
drm/amd/powerplay: simplify the code of [get|set]_activity_monitor_coeff

use smu_update_table_with_arg to replace old code logic

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c