diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2014-01-21 18:36:22 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-09 15:18:52 -0500 |
commit | ddf1d169c0a489d498c1799a7043904a43b0c159 (patch) | |
tree | 5b2baa752d6a4209d8c0ffd9ccb3a940e7b4c888 /include/linux/mcs_spinlock.h | |
parent | b119fa61d440fe0f5af504299ad506637585a8ca (diff) |
locking/mcs: Allow architecture specific asm files to be used for contended case
This patch allows each architecture to add its specific assembly optimized
arch_mcs_spin_lock_contended and arch_mcs_spinlock_uncontended for
MCS lock and unlock functions.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Scott J Norton <scott.norton@hp.com>
Cc: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Cc: AswinChandramouleeswaran <aswin@hp.com>
Cc: George Spelvin <linux@horizon.com>
Cc: Rik vanRiel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: MichelLespinasse <walken@google.com>
Cc: Peter Hurley <peter@hurleysoftware.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Alex Shi <alex.shi@linaro.org>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "Figo.zhang" <figo1802@gmail.com>
Cc: "Paul E.McKenney" <paulmck@linux.vnet.ibm.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
Cc: Waiman Long <waiman.long@hp.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew R Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1390347382.3138.67.camel@schen9-DESK
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/mcs_spinlock.h')
-rw-r--r-- | include/linux/mcs_spinlock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mcs_spinlock.h b/include/linux/mcs_spinlock.h index e9a4d74c63dc..f2a5c6360083 100644 --- a/include/linux/mcs_spinlock.h +++ b/include/linux/mcs_spinlock.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __LINUX_MCS_SPINLOCK_H | 12 | #ifndef __LINUX_MCS_SPINLOCK_H |
13 | #define __LINUX_MCS_SPINLOCK_H | 13 | #define __LINUX_MCS_SPINLOCK_H |
14 | 14 | ||
15 | #include <asm/mcs_spinlock.h> | ||
16 | |||
15 | struct mcs_spinlock { | 17 | struct mcs_spinlock { |
16 | struct mcs_spinlock *next; | 18 | struct mcs_spinlock *next; |
17 | int locked; /* 1 if lock acquired */ | 19 | int locked; /* 1 if lock acquired */ |