Messages in this thread |  | | Date | Tue, 5 Nov 2013 19:57:17 +0100 | From | Peter Zijlstra <> | Subject | Re: [PATCH v2 4/4] MCS Lock: Make mcs_spinlock.h includable in other files |
| |
On Tue, Nov 05, 2013 at 09:42:39AM -0800, Tim Chen wrote: > + * The _raw_mcs_spin_lock() function should not be called directly. Instead, > + * users should call mcs_spin_lock(). > */ > -static noinline > -void mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node) > +static inline > +void _raw_mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node) > { > struct mcs_spinlock *prev; >
So why keep it in the header at all?
|  |