| From eacdf1baeb96718095ac3f0cebc44e792653633d 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 eb40925..0c6f553 100644 |
| --- a/arch/x86/Kconfig |
| +++ b/arch/x86/Kconfig |
| @@ -124,10 +124,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 |
| |