ARC: add barriers to futex code
authorVineet Gupta <vgupta@synopsys.com>
Wed, 5 Aug 2015 13:40:02 +0000 (19:10 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 20 Aug 2015 12:45:59 +0000 (18:15 +0530)
commit31d30c8208a38a0442cc01a9c7f6542489c76353
tree24c482f1ba8dfac5de3c7dd8588fb1c5c76b7acc
parent1648c70d301e669ba03aa1c70fff46ec2c400414
ARC: add barriers to futex code

The atomic ops on futex need to provide the full barrier just like
regular atomics in kernel.

Also remove pagefault_enable/disable in futex_atomic_cmpxchg_inatomic()
as core code already does that

Cc: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/futex.h