]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: use attr_update if the attr has it
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Wed, 26 May 2021 14:45:56 +0000 (20:15 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:36:40 +0000 (22:36 -0400)
commit372dd9534b2a11bc80b9d1de5f91e9db99afe761
tree6637e8c19c43829ad4b9953696a5e96a6d9f9154
parent419e7ce69725c0f495e05b997d40d428dd231077
drm/amd/pm: use attr_update if the attr has it

use attr_update if its available as part of the attribute.
default_attr_update was used even if attr->attr_update is true.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Shashank Sharma <Shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c