]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Slighly optimize 'init_doorbell_bitmap()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 23 Nov 2021 20:46:58 +0000 (21:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:02:37 +0000 (16:02 -0500)
commit2defd0c226ea543268f34a8d8bdd3b6e8a1ace8b
tree77f749b5faa37739f99346c03d0cf3b083b9cd03
parent2116f53a807436c2cf7d440c60802bffe1cdd850
drm/amdkfd: Slighly optimize 'init_doorbell_bitmap()'

The 'doorbell_bitmap' bitmap has just been allocated. So we can use the
non-atomic '__set_bit()' function to save a few cycles as no concurrent
access can happen.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c