Commit b3250aab authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking fixlets from Ingo Molnar:
 "An endianness fix and a jump labels branch hint update"

* 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  locking/qrwlock: include asm/byteorder.h as needed
  jump_label: Add branch hints to static_branch_{un,}likely()
parents 0dc400f4 ca66e797
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define __ASM_GENERIC_QRWLOCK_TYPES_H #define __ASM_GENERIC_QRWLOCK_TYPES_H
#include <linux/types.h> #include <linux/types.h>
#include <asm/byteorder.h>
#include <asm/spinlock_types.h> #include <asm/spinlock_types.h>
/* /*
......
...@@ -393,7 +393,7 @@ extern bool ____wrong_branch_error(void); ...@@ -393,7 +393,7 @@ extern bool ____wrong_branch_error(void);
branch = !arch_static_branch_jump(&(x)->key, true); \ branch = !arch_static_branch_jump(&(x)->key, true); \
else \ else \
branch = ____wrong_branch_error(); \ branch = ____wrong_branch_error(); \
branch; \ likely(branch); \
}) })
#define static_branch_unlikely(x) \ #define static_branch_unlikely(x) \
...@@ -405,7 +405,7 @@ extern bool ____wrong_branch_error(void); ...@@ -405,7 +405,7 @@ extern bool ____wrong_branch_error(void);
branch = arch_static_branch(&(x)->key, false); \ branch = arch_static_branch(&(x)->key, false); \
else \ else \
branch = ____wrong_branch_error(); \ branch = ____wrong_branch_error(); \
branch; \ unlikely(branch); \
}) })
#else /* !HAVE_JUMP_LABEL */ #else /* !HAVE_JUMP_LABEL */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment