mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
jump_label: Add branch hints to static_branch_{un,}likely()
For some reason these were missing, I've not observed this patch making a difference in the few code locations I checked, but this makes sense. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Borislav Petkov <bp@suse.de> Cc: Jason Baron <jbaron@akamai.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
72906f3893
commit
81dcf89f03
@ -393,7 +393,7 @@ extern bool ____wrong_branch_error(void);
|
||||
branch = !arch_static_branch_jump(&(x)->key, true); \
|
||||
else \
|
||||
branch = ____wrong_branch_error(); \
|
||||
branch; \
|
||||
likely(branch); \
|
||||
})
|
||||
|
||||
#define static_branch_unlikely(x) \
|
||||
@ -405,7 +405,7 @@ extern bool ____wrong_branch_error(void);
|
||||
branch = arch_static_branch(&(x)->key, false); \
|
||||
else \
|
||||
branch = ____wrong_branch_error(); \
|
||||
branch; \
|
||||
unlikely(branch); \
|
||||
})
|
||||
|
||||
#else /* !HAVE_JUMP_LABEL */
|
||||
|
Loading…
Reference in New Issue
Block a user