]> git.ipfire.org Git - thirdparty/linux.git/commit - lib/vsprintf.c
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)
commit52e68cd60ddf11802f5135921aba77c0833909a8
tree36d219a085e818da7c1d30b8c65af2204d948359
parent7d5775d49e4a488bc8a07e5abb2b71a4c28aadbb
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