ARM: 8098/1: mcs lock: implement wfe-based polling for MCS locking
authorWill Deacon <will.deacon@arm.com>
Wed, 9 Jul 2014 18:31:28 +0000 (19:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Jul 2014 11:29:35 +0000 (12:29 +0100)
commitbf67fd3142dc605ded9b5e063e35b47c2bb21cb1
tree4456902db3495ef066b7b80449c2e50e34946515
parente38361d032f12f42ddc6d8e2028f6668da696d14
ARM: 8098/1: mcs lock: implement wfe-based polling for MCS locking

This patch introduces a wfe-based polling loop for spinning on contended
MCS locks and waking up corresponding waiters when the lock is released.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/mcs_spinlock.h [new file with mode: 0644]