diff options
author | Waiman Long <Waiman.Long@hp.com> | 2014-02-03 13:18:57 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-06-06 07:58:29 +0200 |
commit | bd01ec1a13f9a327950c8e3080096446c7804753 (patch) | |
tree | 5af212f946ee023fdbadc9b14ff9e2a1431a0c72 /arch/x86/include/asm/spinlock_types.h | |
parent | 70af2f8a4f48d6cebdf92d533d3aef37853ce6de (diff) | |
download | linux-0-day-bd01ec1a13f9a327950c8e3080096446c7804753.tar.gz linux-0-day-bd01ec1a13f9a327950c8e3080096446c7804753.tar.xz |
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>
Diffstat (limited to 'arch/x86/include/asm/spinlock_types.h')
-rw-r--r-- | arch/x86/include/asm/spinlock_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/spinlock_types.h b/arch/x86/include/asm/spinlock_types.h index 4f1bea19945bf..73c4c007200f0 100644 --- a/arch/x86/include/asm/spinlock_types.h +++ b/arch/x86/include/asm/spinlock_types.h @@ -34,6 +34,10 @@ typedef struct arch_spinlock { #define __ARCH_SPIN_LOCK_UNLOCKED { { 0 } } +#ifdef CONFIG_QUEUE_RWLOCK +#include <asm-generic/qrwlock_types.h> +#else #include <asm/rwlock.h> +#endif #endif /* _ASM_X86_SPINLOCK_TYPES_H */ |