]> 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)
commit1efb2bbbc2d2fd1a2f888872596e59432f6fa05d
tree6637e8c19c43829ad4b9953696a5e96a6d9f9154
parent98936f7e198a0b1eb70b70dcb9c8a293bf106a0d
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