ARC: ensure futex ops are atomic in !LLSC config
authorVineet Gupta <vgupta@synopsys.com>
Thu, 6 Aug 2015 13:41:06 +0000 (19:11 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 20 Aug 2015 12:46:01 +0000 (18:16 +0530)
commiteb2cd8b72b08fe56998600aee8a5dff93f7be5a2
treef16645c5a57ce9221e2c6ced11b73789ea9d242c
parent5e0574292ad48dcdf48ef90a47da862c21d649a6
ARC: ensure futex ops are atomic in !LLSC config

W/o hardware assisted atomic r-m-w the best we can do is to disable
preemption.

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