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

drm/amdgpu: Remove unused amdgpu_gfx_bit_to_me_queue

amdgpu_gfx_bit_to_me_queue has been unused since it was added in
commit 7470bfcf2014 ("drm/amdgpu: add helper function for gfx queue/bitmap
transition")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dr. David Alan Gilbert and committed by
Alex Deucher
9d7a8bdb 1e10c122

-12
-10
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
··· 87 87 return bit; 88 88 } 89 89 90 - void amdgpu_gfx_bit_to_me_queue(struct amdgpu_device *adev, int bit, 91 - int *me, int *pipe, int *queue) 92 - { 93 - *queue = bit % adev->gfx.me.num_queue_per_pipe; 94 - *pipe = (bit / adev->gfx.me.num_queue_per_pipe) 95 - % adev->gfx.me.num_pipe_per_me; 96 - *me = (bit / adev->gfx.me.num_queue_per_pipe) 97 - / adev->gfx.me.num_pipe_per_me; 98 - } 99 - 100 90 bool amdgpu_gfx_is_me_queue_enabled(struct amdgpu_device *adev, 101 91 int me, int pipe, int queue) 102 92 {
-2
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
··· 540 540 struct amdgpu_ring *ring); 541 541 int amdgpu_gfx_me_queue_to_bit(struct amdgpu_device *adev, int me, 542 542 int pipe, int queue); 543 - void amdgpu_gfx_bit_to_me_queue(struct amdgpu_device *adev, int bit, 544 - int *me, int *pipe, int *queue); 545 543 bool amdgpu_gfx_is_me_queue_enabled(struct amdgpu_device *adev, int me, 546 544 int pipe, int queue); 547 545 void amdgpu_gfx_off_ctrl(struct amdgpu_device *adev, bool enable);