From: Peter Zijlstra Date: Mon, 3 Feb 2014 12:32:16 +0000 (+0100) Subject: locking: Move mcs_spinlock.h into kernel/locking/ X-Git-Tag: v3.15-rc1~184^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9122da1e2d29bd6a1475a0d1ce2aa6ac6ea25fa;p=thirdparty%2Fkernel%2Flinux.git 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 Link: http://lkml.kernel.org/n/tip-byirmpamgr7h25m5kyavwpzx@git.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/include/linux/mcs_spinlock.h b/kernel/locking/mcs_spinlock.h similarity index 100% rename from include/linux/mcs_spinlock.h rename to kernel/locking/mcs_spinlock.h diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index 45fe1b5293d64..4f408be39a07e 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include "mcs_spinlock.h" /* * In the DEBUG case we are using the "NULL fastpath" for mutexes,