drm/amd/powerplay: simplify the interface of get_gpu_power
authorKevin Wang <kevin1.wang@amd.com>
Fri, 21 Jun 2019 16:26:18 +0000 (11:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:30 +0000 (18:59 -0500)
commit564c4c7f00266a92fd3521983164b1014e6bc7e9
tree515e5b2a12f9da76ce95c8d5750f3fa7c61884ad
parentd573bb214dd2578f7a09c116c3ea9bf99cb4d4fd
drm/amd/powerplay: simplify the interface of get_gpu_power

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