Skip to content

Commit c9122da

Browse files
Peter Zijlstraingomolnar
authored andcommitted
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>
1 parent e571c58 commit c9122da

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/locking/mutex.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <linux/spinlock.h>
2626
#include <linux/interrupt.h>
2727
#include <linux/debug_locks.h>
28-
#include <linux/mcs_spinlock.h>
28+
#include "mcs_spinlock.h"
2929

3030
/*
3131
* In the DEBUG case we are using the "NULL fastpath" for mutexes,

0 commit comments

Comments
 (0)