From dfcc5b997ce9c313b9ac0e7d8da39c4416b472a8 Mon Sep 17 00:00:00 2001 From: rtm Date: Tue, 29 Aug 2006 19:06:37 +0000 Subject: prune unneeded panics and debug output --- spinlock.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'spinlock.c') diff --git a/spinlock.c b/spinlock.c index c77e444..7285748 100644 --- a/spinlock.c +++ b/spinlock.c @@ -43,7 +43,6 @@ acquire(struct spinlock * lock) cpuid(0, 0, 0, 0, 0); // memory barrier getcallerpcs(&lock, lock->pcs); lock->cpu = cpu() + 10; - cpus[cpu()].lastacquire = lock; } void @@ -53,7 +52,6 @@ release(struct spinlock * lock) if(!holding(lock)) panic("release"); - cpus[cpu()].lastrelease = lock; lock->pcs[0] = 0; lock->cpu = 0xffffffff; cpuid(0, 0, 0, 0, 0); // memory barrier -- cgit v1.2.3