ARM: 6889/1: futex: add SMP futex support when !CPU_USE_DOMAINS
authorWill Deacon <will.deacon@arm.com>
Thu, 28 Apr 2011 17:43:01 +0000 (18:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 May 2011 09:11:44 +0000 (10:11 +0100)
commitc1b0db56604b4ccc55a325104b14093aeedeb829
tree3c7a8df020dc52fa87ce013cfad42df3dea5f312
parentaf3e4fd37a18f2e5a00175bc96061541d1364a3b
ARM: 6889/1: futex: add SMP futex support when !CPU_USE_DOMAINS

This patch uses the load/store exclusive instructions to add SMP futex
support for ARM.

Since the ARM architecture does not provide instructions for
unprivileged exclusive memory accesses, we can only provide SMP futexes
when CPU domain support is disabled.

Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/futex.h