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()
This commit is contained in:
@@ -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);
|
|||||||
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);
|
|||||||
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 */
|
||||||
|
Reference in New Issue
Block a user