]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/pm: only check sriov vf flag once when creating hwmon sysfs
authorMa Jun <Jun.Ma2@amd.com>
Thu, 26 Oct 2023 01:58:15 +0000 (09:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Nov 2023 16:18:32 +0000 (12:18 -0400)
commit88e5c8f8745b389b8e088a743a70840ead1dad37
tree0014afa9e4b95d683baa39553c2e9fa28c410c2e
parent0e2e7c5b3d712f4589b3bf0eb2988337966648b6
drm/amd/pm: only check sriov vf flag once when creating hwmon sysfs

The current code checks sriov vf flag multiple times when creating
hwmon sysfs. So fix it.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c