blob: ae075a006968d90117eccce44d2f76ff748a95aa [file] [log] [blame]
From 472e73122da0287f9c7a75ba38414eb7c3f105e9 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>
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 738bdc6..315a0c9 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -122,10 +122,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.1.1