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)
commit52d720b1a8003609d89950f721f431c7eea1ac0e
tree4721730d3fb778782a67ed69c3690a0dc2e0d030
parentb36c1024dc32bf5aa2c2d5b0b4701bb4ff2b8842
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