From ab4cedb5930cb21f0a4810f64be0ab6cfca026f3 Mon Sep 17 00:00:00 2001 From: rtm Date: Fri, 31 Aug 2007 19:55:27 +0000 Subject: continuous quality management --- spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spinlock.c') diff --git a/spinlock.c b/spinlock.c index 236235c..891f72c 100644 --- a/spinlock.c +++ b/spinlock.c @@ -20,8 +20,8 @@ initlock(struct spinlock *lock, char *name) // Acquire the lock. // Loops (spins) until the lock is acquired. -// (Because contention is handled by spinning, -// must not go to sleep holding any locks.) +// Holding a lock for a long time may cause +// other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lock) { -- cgit v1.2.3