]> git.ipfire.org Git - thirdparty/linux.git/commit
media: verisilicon: Use __set_bit() with local bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 25 May 2025 08:11:44 +0000 (10:11 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 20 Jun 2025 11:20:17 +0000 (13:20 +0200)
commit70c37d403e7eba64d3eaadb8549d8f483912b6d1
treec9b6670ab0de157915e8adef0738b8c2a2f70c49
parentfc5f8aec77704373ee804b5dba0e0e5029c0f180
media: verisilicon: Use __set_bit() with local bitmaps

The 'used' and 'new' bitmaps are local to this function, so there is no
need to use atomic access because concurrency can not happen.

Use the non-atomic __set_bit() to save a few cycles.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/verisilicon/hantro_h264.c