Skip to content
Commit e4279b59 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Petr Mladek
Browse files

lib/vsprintf: Remove static_branch_likely() from __ptr_to_hashval().



Using static_branch_likely() to signal that ptr_key has been filled is a
bit much given that it is not a fast path.

Replace static_branch_likely() with bool for condition and a memory
barrier for ptr_key.

Suggested-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220927104912.622645-2-bigeasy@linutronix.de
parent a1b02751
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment