From 4bc900e78bdbff3ba22ccccd26833cf70fd300b1 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 10 Jul 2019 14:54:34 -0400 Subject: nits --- kernel/spinlock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kernel/spinlock.c') diff --git a/kernel/spinlock.c b/kernel/spinlock.c index 5a44a46..52bd504 100644 --- a/kernel/spinlock.c +++ b/kernel/spinlock.c @@ -18,8 +18,6 @@ initlock(struct spinlock *lk, char *name) // Acquire the lock. // Loops (spins) until the lock is acquired. -// Holding a lock for a long time may cause -// other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lk) { @@ -81,7 +79,7 @@ holding(struct spinlock *lk) } // push_off/pop_off are like intr_off()/intr_on() except that they are matched: -// it takes two pop_off to undo two push_off. Also, if interrupts +// it takes two pop_off()s to undo two push_off()s. Also, if interrupts // are initially off, then push_off, pop_off leaves them off. void -- cgit v1.2.3