Skip to content

Commit 1696a8b

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
locking: Move the rtmutex code to kernel/locking/
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>
1 parent e25a64c commit 1696a8b

File tree

10 files changed

+5
-5
lines changed

10 files changed

+5
-5
lines changed

kernel/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ obj-$(CONFIG_FUTEX) += futex.o
3535
ifeq ($(CONFIG_COMPAT),y)
3636
obj-$(CONFIG_FUTEX) += futex_compat.o
3737
endif
38-
obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
39-
obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
40-
obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
4138
obj-$(CONFIG_GENERIC_ISA_DMA) += dma.o
4239
obj-$(CONFIG_SMP) += smp.o
4340
ifneq ($(CONFIG_SMP),y)

kernel/futex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
#include <asm/futex.h>
6868

69-
#include "rtmutex_common.h"
69+
#include "locking/rtmutex_common.h"
7070

7171
int __read_mostly futex_cmpxchg_enabled;
7272

kernel/locking/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
1515
endif
1616
obj-$(CONFIG_SMP) += spinlock.o
1717
obj-$(CONFIG_PROVE_LOCKING) += spinlock.o
18+
obj-$(CONFIG_RT_MUTEXES) += rtmutex.o
19+
obj-$(CONFIG_DEBUG_RT_MUTEXES) += rtmutex-debug.o
20+
obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
1821
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
1922
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o

kernel/rcu/tree_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ void exit_rcu(void)
11331133

11341134
#ifdef CONFIG_RCU_BOOST
11351135

1136-
#include "../rtmutex_common.h"
1136+
#include "../locking/rtmutex_common.h"
11371137

11381138
#ifdef CONFIG_RCU_TRACE
11391139

0 commit comments

Comments
 (0)