drm/amd/pm: avoid consecutive retrieving for enabled ppfeatures
authorEvan Quan <evan.quan@amd.com>
Wed, 8 Dec 2021 07:35:00 +0000 (15:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 23:01:16 +0000 (18:01 -0500)
commita89ef0448c9b59c524499663eeb92a43c8bc67fd
treefe9f6daaa0c0fa7f7605905530b4c804f5c9353e
parent3c6591e947f5c23c13dec67da3dbff12ccd6e209
drm/amd/pm: avoid consecutive retrieving for enabled ppfeatures

As the enabled ppfeatures are just retrieved ahead. We can use
that directly instead of retrieving again and again.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c