diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-02-03 07:32:16 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-03-11 07:14:52 -0400 |
commit | c9122da1e2d29bd6a1475a0d1ce2aa6ac6ea25fa (patch) | |
tree | 23170aeccc3fc597b97472529ef3dfb7fd42769e | |
parent | e571c58f313d35c56e0018470e3375ddd1fd320e (diff) |
locking: Move mcs_spinlock.h into kernel/locking/
The mcs_spinlock code is not meant (or suitable) as a generic locking
primitive, therefore take it away from the normal includes and place
it in kernel/locking/.
This way the locking primitives implemented there can use it as part
of their implementation but we do not risk it getting used
inapropriately.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-byirmpamgr7h25m5kyavwpzx@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/locking/mcs_spinlock.h (renamed from include/linux/mcs_spinlock.h) | 0 | ||||
-rw-r--r-- | kernel/locking/mutex.c | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mcs_spinlock.h b/kernel/locking/mcs_spinlock.h index f2a5c6360083..f2a5c6360083 100644 --- a/include/linux/mcs_spinlock.h +++ b/kernel/locking/mcs_spinlock.h | |||
diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index 45fe1b5293d6..4f408be39a07 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/spinlock.h> | 25 | #include <linux/spinlock.h> |
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <linux/debug_locks.h> | 27 | #include <linux/debug_locks.h> |
28 | #include <linux/mcs_spinlock.h> | 28 | #include "mcs_spinlock.h" |
29 | 29 | ||
30 | /* | 30 | /* |
31 | * In the DEBUG case we are using the "NULL fastpath" for mutexes, | 31 | * In the DEBUG case we are using the "NULL fastpath" for mutexes, |