blob: 1718984ffc929befd484b2e51bde522b96e40bc4 [file] [log] [blame]
From e5573720d02ed815ad4697937ca69a94a29f6dbf Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Sun, 26 Jul 2009 02:21:32 +0200
Subject: [PATCH] x86: Use generic rwsem_spinlocks on -rt
commit 472e73122da0287f9c7a75ba38414eb7c3f105e9 in tip.
Simplifies the separation of anon_rw_semaphores and rw_semaphores for
-rt.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
arch/x86/Kconfig | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index b99909c..aec2034 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -129,10 +129,18 @@ config ARCH_MAY_HAVE_PC_FDC
def_bool y
config RWSEM_GENERIC_SPINLOCK
- def_bool !X86_XADD
+ bool
+ depends on !X86_XADD || PREEMPT_RT
+ default y
+
+config ASM_SEMAPHORES
+ bool
+ default y
config RWSEM_XCHGADD_ALGORITHM
- def_bool X86_XADD
+ bool
+ depends on X86_XADD && !RWSEM_GENERIC_SPINLOCK && !PREEMPT_RT
+ default y
config ARCH_HAS_CPU_IDLE_WAIT
def_bool y
--
1.7.0.4