drm/amd/powerplay: simplify the interface of get_current_activity_percent
authorKevin Wang <kevin1.wang@amd.com>
Fri, 21 Jun 2019 16:25:00 +0000 (11:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:30 +0000 (18:59 -0500)
commitd573bb214dd2578f7a09c116c3ea9bf99cb4d4fd
tree426680e259d1da3f45d91058477d6a53643110ea
parente36182490dec3d2947dbf3c3d979051b8706845c
drm/amd/powerplay: simplify the interface of get_current_activity_percent

this callback function is only call in read_sensor in smu_v11_0.c,
so move this code to {asic}_ppt.c to implement as asic related function.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@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/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c