]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d47aa6dd66c77ff737b7fe1bc837f7e9752274c
tree515e5b2a12f9da76ce95c8d5750f3fa7c61884ad
parenta8e42b1c3784146be3855fb9f4f161297457348c
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