]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8e42b1c3784146be3855fb9f4f161297457348c
tree426680e259d1da3f45d91058477d6a53643110ea
parent7c53af1e0b41a12855fc1b8968c834346807b1fc
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