Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Use memset32 for ring clearing

Use memset32 instead of open coding it, just because it is
a tiny bit nicer.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tvrtko Ursulin and committed by
Alex Deucher
e2ee0f1b ae5c2bee

+1 -4
+1 -4
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
··· 481 481 482 482 static inline void amdgpu_ring_clear_ring(struct amdgpu_ring *ring) 483 483 { 484 - int i = 0; 485 - while (i <= ring->buf_mask) 486 - ring->ring[i++] = ring->funcs->nop; 487 - 484 + memset32(ring->ring, ring->funcs->nop, ring->buf_mask + 1); 488 485 } 489 486 490 487 static inline void amdgpu_ring_write(struct amdgpu_ring *ring, uint32_t v)