Commit e4279b5
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: Petr Mladek <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent a1b0275 commit e4279b5
1 file changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 753 | + | |
759 | 754 | | |
760 | 755 | | |
761 | 756 | | |
762 | 757 | | |
763 | 758 | | |
764 | 759 | | |
765 | 760 | | |
766 | | - | |
| 761 | + | |
767 | 762 | | |
768 | 763 | | |
769 | | - | |
770 | 764 | | |
771 | 765 | | |
772 | | - | |
| 766 | + | |
773 | 767 | | |
774 | 768 | | |
775 | 769 | | |
776 | 770 | | |
777 | 771 | | |
778 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
779 | 775 | | |
780 | 776 | | |
781 | 777 | | |
782 | 778 | | |
783 | | - | |
| 779 | + | |
| 780 | + | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
| |||
0 commit comments