OSDN Git Service

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)
commitf37668301e362a0ed4b0b2ec6866f0a02fefa4db
tree77f749b5faa37739f99346c03d0cf3b083b9cd03
parentb9dd6fbd1587ca1204e6b5ea536115ab3fed1798
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