Re: [PATCH v7 3/6] MCS Lock: Move mcs_lock/unlock function into its own file

2014-01-20 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 04:08:24PM -0800, Tim Chen wrote: > copy to kernel/locking/mcs_spinlock.c > index 96f14299..44fb092 100644 > --- a/include/linux/mcs_spinlock.h > +++ b/kernel/locking/mcs_spinlock.c > +/* > + * asm/processor.h may define arch_mutex_cpu_relax(). > + * If it is not defined, cp

Re: [PATCH v7 3/6] MCS Lock: Move mcs_lock/unlock function into its own file

2014-01-19 Thread Paul E. McKenney
On Thu, Jan 16, 2014 at 04:08:24PM -0800, Tim Chen wrote: > The following changes are made: > > 1) Create a new mcs_spinlock.c file to contain the >mcs_spin_lock() and mcs_spin_unlock() function. > 2) Include a number of prerequisite header files and define >arch_mutex_cpu_relax(), if not

[PATCH v7 3/6] MCS Lock: Move mcs_lock/unlock function into its own file

2014-01-16 Thread Tim Chen
The following changes are made: 1) Create a new mcs_spinlock.c file to contain the mcs_spin_lock() and mcs_spin_unlock() function. 2) Include a number of prerequisite header files and define arch_mutex_cpu_relax(), if not previously defined so the mcs functions can be compiled for multipl