]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: modify the power limit level parameter from bool to enum type
authorXiaomeng Hou <Xiaomeng.Hou@amd.com>
Fri, 5 Feb 2021 10:51:13 +0000 (18:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Feb 2021 20:29:22 +0000 (15:29 -0500)
commitc696239efdfebe8c1b720a6f53a48f56788f6166
tree4721730d3fb778782a67ed69c3690a0dc2e0d030
parent244831fabce58f9c48b225b8b48d8fbfefefe81c
drm/amd/pm: modify the power limit level parameter from bool to enum type

The original smu_get_power_limit callback accepts the power limit level
parameter as bool which limits to max and current. For possible needs to
retrieve other level like min, extend the parameter type using enum.

Signed-off-by: Xiaomeng Hou <Xiaomeng.Hou@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c