x86, locking/rwlocks: Enable qrwlocks on x86
authorWaiman Long <Waiman.Long@hp.com>
Mon, 3 Feb 2014 12:18:57 +0000 (13:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Jun 2014 05:58:29 +0000 (07:58 +0200)
commitbd01ec1a13f9a327950c8e3080096446c7804753
tree5af212f946ee023fdbadc9b14ff9e2a1431a0c72
parent70af2f8a4f48d6cebdf92d533d3aef37853ce6de
x86, locking/rwlocks: Enable qrwlocks on x86

Make x86 use the fair rwlock_t.

Implement the custom queue_write_unlock() for best performance.

Signed-off-by: Waiman Long <Waiman.Long@hp.com>
[peterz: near complete rewrite]
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Dave Jones <davej@redhat.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Cc: "Paul E.McKenney" <paulmck@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org
Cc: x86@kernel.org
Link: http://lkml.kernel.org/n/tip-r1xuzmdysvuhl3h86n5fbxi7@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig
arch/x86/include/asm/qrwlock.h [new file with mode: 0644]
arch/x86/include/asm/spinlock.h
arch/x86/include/asm/spinlock_types.h