linux/debian/patches/features/all/rt/lockref-disable-64bit-cmpxc...

26 lines
889 B
Diff

From f58b8f5371f712ec2cdd20fb9ec032cffc1da4d2 Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Sat, 26 Oct 2013 00:01:58 +0200
Subject: [PATCH] lockref: disable 64bit cmpxchg optimization on RT
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/3.12/patches-3.12.1-rt4.tar.xz
One of the requirements is that the lock has to fit in an u32 which does
not work with the sleeping locks. We would have to use the bare raw
locks for this and I would like to avoid this.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
lib/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -57,6 +57,7 @@ config CMPXCHG_LOCKREF
depends on !GENERIC_LOCKBREAK
depends on !DEBUG_SPINLOCK
depends on !DEBUG_LOCK_ALLOC
+ depends on !PREEMPT_RT_BASE
config CRC_CCITT
tristate "CRC-CCITT functions"