diff options
author | Will Deacon <will.deacon@arm.com> | 2018-04-26 12:34:24 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-04-27 09:48:51 +0200 |
commit | 626e5fbc14358901ddaa90ce510e0fbeab310432 (patch) | |
tree | a6cb035242e8be6594881d19068fdeeaae6b24dc /kernel/locking/qspinlock.c | |
parent | locking/qspinlock: Use smp_cond_load_relaxed() to wait for next node (diff) | |
download | linux-626e5fbc14358901ddaa90ce510e0fbeab310432.tar.xz linux-626e5fbc14358901ddaa90ce510e0fbeab310432.zip |
locking/qspinlock: Use smp_store_release() in queued_spin_unlock()
A qspinlock can be unlocked simply by writing zero to the locked byte.
This can be implemented in the generic code, so do that and remove the
arch-specific override for x86 in the !PV case.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Waiman Long <longman@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: boqun.feng@gmail.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: paulmck@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1524738868-31318-11-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking/qspinlock.c')
0 files changed, 0 insertions, 0 deletions