]> www.infradead.org Git - users/dwmw2/linux.git/commit
amdgpu/pm: Fix incorrect variable for size of clocks array
authorDarren Powell <darren.powell@amd.com>
Sat, 30 Apr 2022 01:20:52 +0000 (21:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jun 2022 20:55:12 +0000 (16:55 -0400)
commit543faf57ee0ef6feb1ef60122c0abb9097083ded
tree8a835c139d115122531c7b3e61ab4b9f6746c97f
parentab8529b0cdb271d9b222cbbddb2641f3fca5df8f
amdgpu/pm: Fix incorrect variable for size of clocks array

 [v2]
No Changes, added RB
 [v1]
Size of pp_clock_levels_with_latency is PP_MAX_CLOCK_LEVELS, not MAX_NUM_CLOCKS.
Both are currently defined as 16, modifying in case one value is modified in future
Changed code in both arcturus and aldabaran.

Also removed unneeded var count, and used min_t function

Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c