mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 21:23:23 +00:00
drm/amdgpu: Fix get each xcp macro
Fix get each xcp macro to loop over each partition correctly Fixes: 4bdca2057933 ("drm/amdgpu: Add utility functions for xcp") Signed-off-by: Asad Kamal <asad.kamal@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
06c9aeb57f
commit
ef126c06a9
@ -180,6 +180,6 @@ amdgpu_get_next_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int *from)
|
||||
|
||||
#define for_each_xcp(xcp_mgr, xcp, i) \
|
||||
for (i = 0, xcp = amdgpu_get_next_xcp(xcp_mgr, &i); xcp; \
|
||||
xcp = amdgpu_get_next_xcp(xcp_mgr, &i))
|
||||
++i, xcp = amdgpu_get_next_xcp(xcp_mgr, &i))
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user