diff options
author | Will Deacon <[email protected]> | 2016-06-27 18:43:54 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-07-07 09:10:53 +0200 |
commit | 03e3c2b7edbe1e8758196b2c7843333eb328063d (patch) | |
tree | f894288a88daa7d20fc00be4f294a1344ae2601e /kernel/locking/mutex-debug.h | |
parent | 885885f6b88d22f81e67ee6a61561e480b27d27a (diff) |
locking/barriers, arch/arm64: Implement LDXR+WFE based smp_cond_load_acquire()
smp_cond_load_acquire() is used to spin on a variable until some
expression involving that variable becomes true.
On arm64, we can build this using the LDXR and WFE instructions, since
clearing of the exclusive monitor as a result of the variable being
changed by another CPU generates an event, which will wake us up out of WFE.
This patch implements smp_cond_load_acquire() using LDXR and WFE, which
themselves are contained in an internal __cmpwait() function.
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'kernel/locking/mutex-debug.h')
0 files changed, 0 insertions, 0 deletions