locking: Move the rtmutex code to kernel/locking/
authorPeter Zijlstra <peterz@infradead.org>
Thu, 31 Oct 2013 17:18:19 +0000 (18:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 6 Nov 2013 08:23:59 +0000 (09:23 +0100)
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-p9ijt8div0hwldexwfm4nlhj@git.kernel.org
[ Fixed build failure in kernel/rcu/tree_plugin.h. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/Makefile
kernel/futex.c
kernel/locking/Makefile
kernel/locking/rtmutex-debug.c [moved from kernel/rtmutex-debug.c with 100% similarity]
kernel/locking/rtmutex-debug.h [moved from kernel/rtmutex-debug.h with 100% similarity]
kernel/locking/rtmutex-tester.c [moved from kernel/rtmutex-tester.c with 100% similarity]
kernel/locking/rtmutex.c [moved from kernel/rtmutex.c with 100% similarity]
kernel/locking/rtmutex.h [moved from kernel/rtmutex.h with 100% similarity]
kernel/locking/rtmutex_common.h [moved from kernel/rtmutex_common.h with 100% similarity]
kernel/rcu/tree_plugin.h

index 45e5ae2..9c2ad18 100644 (file)
@@ -35,9 +35,6 @@ obj-$(CONFIG_FUTEX) += futex.o
 ifeq ($(CONFIG_COMPAT),y)
 obj-$(CONFIG_FUTEX) += futex_compat.o
 endif
-obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
-obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
-obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
 obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
 obj-$(CONFIG_SMP) += smp.o
 ifneq ($(CONFIG_SMP),y)
index c3a1a55..80ba086 100644 (file)
@@ -66,7 +66,7 @@
 
 #include <asm/futex.h>
 
-#include "rtmutex_common.h"
+#include "locking/rtmutex_common.h"
 
 int __read_mostly futex_cmpxchg_enabled;
 
index 5978fdd..59f66de 100644 (file)
@@ -15,5 +15,8 @@ obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
 endif
 obj-$(CONFIG_SMP) += spinlock.o
 obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
+obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
+obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
+obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
 obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
 obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
similarity index 100%
rename from kernel/rtmutex.c
rename to kernel/locking/rtmutex.c
similarity index 100%
rename from kernel/rtmutex.h
rename to kernel/locking/rtmutex.h
index 3822ac0..6abb03d 100644 (file)
@@ -1133,7 +1133,7 @@ void exit_rcu(void)
 
 #ifdef CONFIG_RCU_BOOST
 
-#include "../rtmutex_common.h"
+#include "../locking/rtmutex_common.h"
 
 #ifdef CONFIG_RCU_TRACE