]> git.baikalelectronics.ru Git - kernel.git/commit
vsprintf: Use non-atomic bitmap API when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 27 Nov 2021 14:27:35 +0000 (15:27 +0100)
committerPetr Mladek <pmladek@suse.com>
Mon, 6 Dec 2021 12:35:28 +0000 (13:35 +0100)
commit37eb16d28454a0bfb545ea3550cb66ec6a44645f
tree36d219a085e818da7c1d30b8c65af2204d948359
parent6531b54ae62196eab9d0133263520a74842f94f7
vsprintf: Use non-atomic bitmap API when applicable

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/1abf81a5e509d372393bd22041eed4ebc07ef9f7.1638023178.git.christophe.jaillet@wanadoo.fr
lib/vsprintf.c