aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2013-10-31 13:11:53 -0400
committerIngo Molnar <mingo@kernel.org>2013-11-06 01:55:07 -0500
commit01768b42dc97a67b4fb33a2535c49fc1969880df (patch)
tree448a1aff2286e8e9752124964e725d7bd5d3dba8 /kernel
parentc90423d1de12fbeaf0c898e1db0e962de347302b (diff)
locking: Move the mutex 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-1ditvncg30dgbpvrz2bxfmke@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/Makefile6
-rw-r--r--kernel/locking/Makefile9
-rw-r--r--kernel/locking/mutex-debug.c (renamed from kernel/mutex-debug.c)0
-rw-r--r--kernel/locking/mutex-debug.h (renamed from kernel/mutex-debug.h)0
-rw-r--r--kernel/locking/mutex.c (renamed from kernel/mutex.c)0
-rw-r--r--kernel/locking/mutex.h (renamed from kernel/mutex.h)0
6 files changed, 11 insertions, 4 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index a4d1aa8da9bc..330b14666475 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -7,7 +7,7 @@ obj-y = fork.o exec_domain.o panic.o \
7 sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \ 7 sysctl.o sysctl_binary.o capability.o ptrace.o timer.o user.o \
8 signal.o sys.o kmod.o workqueue.o pid.o task_work.o \ 8 signal.o sys.o kmod.o workqueue.o pid.o task_work.o \
9 extable.o params.o posix-timers.o \ 9 extable.o params.o posix-timers.o \
10 kthread.o sys_ni.o posix-cpu-timers.o mutex.o \ 10 kthread.o sys_ni.o posix-cpu-timers.o \
11 hrtimer.o rwsem.o nsproxy.o semaphore.o \ 11 hrtimer.o rwsem.o nsproxy.o semaphore.o \
12 notifier.o ksysfs.o cred.o reboot.o \ 12 notifier.o ksysfs.o cred.o reboot.o \
13 async.o range.o groups.o lglock.o smpboot.o 13 async.o range.o groups.o lglock.o smpboot.o
@@ -16,13 +16,12 @@ ifdef CONFIG_FUNCTION_TRACER
16# Do not trace debug files and internal ftrace files 16# Do not trace debug files and internal ftrace files
17CFLAGS_REMOVE_lockdep.o = -pg 17CFLAGS_REMOVE_lockdep.o = -pg
18CFLAGS_REMOVE_lockdep_proc.o = -pg 18CFLAGS_REMOVE_lockdep_proc.o = -pg
19CFLAGS_REMOVE_mutex-debug.o = -pg
20CFLAGS_REMOVE_rtmutex-debug.o = -pg
21CFLAGS_REMOVE_cgroup-debug.o = -pg 19CFLAGS_REMOVE_cgroup-debug.o = -pg
22CFLAGS_REMOVE_irq_work.o = -pg 20CFLAGS_REMOVE_irq_work.o = -pg
23endif 21endif
24 22
25obj-y += sched/ 23obj-y += sched/
24obj-y += locking/
26obj-y += power/ 25obj-y += power/
27obj-y += printk/ 26obj-y += printk/
28obj-y += cpu/ 27obj-y += cpu/
@@ -34,7 +33,6 @@ obj-$(CONFIG_FREEZER) += freezer.o
34obj-$(CONFIG_PROFILING) += profile.o 33obj-$(CONFIG_PROFILING) += profile.o
35obj-$(CONFIG_STACKTRACE) += stacktrace.o 34obj-$(CONFIG_STACKTRACE) += stacktrace.o
36obj-y += time/ 35obj-y += time/
37obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
38obj-$(CONFIG_LOCKDEP) += lockdep.o 36obj-$(CONFIG_LOCKDEP) += lockdep.o
39ifeq ($(CONFIG_PROC_FS),y) 37ifeq ($(CONFIG_PROC_FS),y)
40obj-$(CONFIG_LOCKDEP) += lockdep_proc.o 38obj-$(CONFIG_LOCKDEP) += lockdep_proc.o
diff --git a/kernel/locking/Makefile b/kernel/locking/Makefile
new file mode 100644
index 000000000000..fe8bd58b22f8
--- /dev/null
+++ b/kernel/locking/Makefile
@@ -0,0 +1,9 @@
1
2obj-y += mutex.o
3
4ifdef CONFIG_FUNCTION_TRACER
5CFLAGS_REMOVE_mutex-debug.o = -pg
6CFLAGS_REMOVE_rtmutex-debug.o = -pg
7endif
8
9obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
diff --git a/kernel/mutex-debug.c b/kernel/locking/mutex-debug.c
index 7e3443fe1f48..7e3443fe1f48 100644
--- a/kernel/mutex-debug.c
+++ b/kernel/locking/mutex-debug.c
diff --git a/kernel/mutex-debug.h b/kernel/locking/mutex-debug.h
index 0799fd3e4cfa..0799fd3e4cfa 100644
--- a/kernel/mutex-debug.h
+++ b/kernel/locking/mutex-debug.h
diff --git a/kernel/mutex.c b/kernel/locking/mutex.c
index d24105b1b794..d24105b1b794 100644
--- a/kernel/mutex.c
+++ b/kernel/locking/mutex.c
diff --git a/kernel/mutex.h b/kernel/locking/mutex.h
index 4115fbf83b12..4115fbf83b12 100644
--- a/kernel/mutex.h
+++ b/kernel/locking/mutex.h