Skip to contentSkip to conversation

mcs_spin_lock() is inline, but comment says it isn't

PATCH New Palmer Dabbelt 1 participant 1 message Mar 16, 2014 Locking primitives

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mcs_spin_lock() is inline, but comment says it isn't

I was reading the mcs_spinlock code today and I noticed a comment that didn't appear to match the code. This appears to have just been an oversight during some restructuring of the mcs_spinlock code where this function was made inline but the comment wasn't updated.

---
 kernel/locking/mcs_spinlock.h | 3 ---
 1 file changed, 3 deletions(-)
kernel/locking/mcs_spinlock.h +0 -3
index a2dbac4..f4e94af 100644
@@ -56,9 +56,6 @@ do {									\
  * If the lock has already been acquired, then this will proceed to spin
  * on this node->locked until the previous lock holder sets the node->locked
  * in mcs_spin_unlock().
- *
- * We don't inline mcs_spin_lock() so that perf can correctly account for the
- * time spent in this lock function.
  */
 static inline
 void mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node)
Signature · 1 line
1.8.3.2