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)
commit8a81028b4f7afafd138b8f70d3ce4edc75962d08
tree6637e8c19c43829ad4b9953696a5e96a6d9f9154
parent3c609c8b1f2f481b04cca7ddc890a075cec4a6c3
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