]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-dev: Use non-atomic bitmap API when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 27 Nov 2021 14:46:39 +0000 (15:46 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 12:20:35 +0000 (13:20 +0100)
commit508067388d86e59e32040780294e8f0fc95d4471
tree4c519367a51e291cff34e0e0acfcdd19deef0cf7
parentcc742517cac13317e9290b5d463056464f011490
media: v4l2-dev: Use non-atomic bitmap API when applicable

No concurrent access is possible when a bitmap is local to a function.
So prefer the non-atomic '__[set|clear]_bit()' functions to save a few
cycles.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-dev.c