瀏覽代碼

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>
Peter Zijlstra 11 年之前
父節點
當前提交
c9122da1e2
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 0 0
      kernel/locking/mcs_spinlock.h
  2. 1 1
      kernel/locking/mutex.c

+ 0 - 0
include/linux/mcs_spinlock.h → kernel/locking/mcs_spinlock.h


+ 1 - 1
kernel/locking/mutex.c

@@ -25,7 +25,7 @@
 #include <linux/spinlock.h>
 #include <linux/interrupt.h>
 #include <linux/debug_locks.h>
-#include <linux/mcs_spinlock.h>
+#include "mcs_spinlock.h"
 
 /*
  * In the DEBUG case we are using the "NULL fastpath" for mutexes,