diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 13:27:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 13:27:28 -0400 |
commit | cc76ee75a9d3201eeacc576d17fbc1511f673010 (patch) | |
tree | 9505405c270718c491840ae7d0da0521386ce939 /arch/arm64/include | |
parent | 9c65e12a55fea2da50f4069ec0dc47c50b7bd2bb (diff) | |
parent | 58995a9a5b292458f94a2356b8c878230fa56fe0 (diff) |
Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core locking changes from Ingo Molnar:
"Main changes:
- jump label asm preparatory work for PowerPC (Anton Blanchard)
- rwsem optimizations and cleanups (Davidlohr Bueso)
- mutex optimizations and cleanups (Jason Low)
- futex fix (Oleg Nesterov)
- remove broken atomicity checks from {READ,WRITE}_ONCE() (Peter
Zijlstra)"
* 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
powerpc, jump_label: Include linux/jump_label.h to get HAVE_JUMP_LABEL define
jump_label: Allow jump labels to be used in assembly
jump_label: Allow asm/jump_label.h to be included in assembly
locking/mutex: Further simplify mutex_spin_on_owner()
locking: Remove atomicy checks from {READ,WRITE}_ONCE
locking/rtmutex: Rename argument in the rt_mutex_adjust_prio_chain() documentation as well
locking/rwsem: Fix lock optimistic spinning when owner is not running
locking: Remove ACCESS_ONCE() usage
locking/rwsem: Check for active lock before bailing on spinning
locking/rwsem: Avoid deceiving lock spinners
locking/rwsem: Set lock ownership ASAP
locking/rwsem: Document barrier need when waking tasks
locking/futex: Check PF_KTHREAD rather than !p->mm to filter out kthreads
locking/mutex: Refactor mutex_spin_on_owner()
locking/mutex: In mutex_spin_on_owner(), return true when owner changes
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/jump_label.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm64/include/asm/jump_label.h b/arch/arm64/include/asm/jump_label.h index 076a1c714049..c0e5165c2f76 100644 --- a/arch/arm64/include/asm/jump_label.h +++ b/arch/arm64/include/asm/jump_label.h | |||
@@ -18,11 +18,12 @@ | |||
18 | */ | 18 | */ |
19 | #ifndef __ASM_JUMP_LABEL_H | 19 | #ifndef __ASM_JUMP_LABEL_H |
20 | #define __ASM_JUMP_LABEL_H | 20 | #define __ASM_JUMP_LABEL_H |
21 | |||
22 | #ifndef __ASSEMBLY__ | ||
23 | |||
21 | #include <linux/types.h> | 24 | #include <linux/types.h> |
22 | #include <asm/insn.h> | 25 | #include <asm/insn.h> |
23 | 26 | ||
24 | #ifdef __KERNEL__ | ||
25 | |||
26 | #define JUMP_LABEL_NOP_SIZE AARCH64_INSN_SIZE | 27 | #define JUMP_LABEL_NOP_SIZE AARCH64_INSN_SIZE |
27 | 28 | ||
28 | static __always_inline bool arch_static_branch(struct static_key *key) | 29 | static __always_inline bool arch_static_branch(struct static_key *key) |
@@ -39,8 +40,6 @@ l_yes: | |||
39 | return true; | 40 | return true; |
40 | } | 41 | } |
41 | 42 | ||
42 | #endif /* __KERNEL__ */ | ||
43 | |||
44 | typedef u64 jump_label_t; | 43 | typedef u64 jump_label_t; |
45 | 44 | ||
46 | struct jump_entry { | 45 | struct jump_entry { |
@@ -49,4 +48,5 @@ struct jump_entry { | |||
49 | jump_label_t key; | 48 | jump_label_t key; |
50 | }; | 49 | }; |
51 | 50 | ||
51 | #endif /* __ASSEMBLY__ */ | ||
52 | #endif /* __ASM_JUMP_LABEL_H */ | 52 | #endif /* __ASM_JUMP_LABEL_H */ |