summaryrefslogtreecommitdiff
path: root/spinlock.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-29 19:06:37 +0000
committerrtm <rtm>2006-08-29 19:06:37 +0000
commitdfcc5b997ce9c313b9ac0e7d8da39c4416b472a8 (patch)
tree2d6c4e47bad6cfe7436896068a5872ace545a974 /spinlock.c
parentd7ce6545e7179e9a4b950838c354b485e3f3fdb8 (diff)
downloadxv6-labs-dfcc5b997ce9c313b9ac0e7d8da39c4416b472a8.tar.gz
xv6-labs-dfcc5b997ce9c313b9ac0e7d8da39c4416b472a8.tar.bz2
xv6-labs-dfcc5b997ce9c313b9ac0e7d8da39c4416b472a8.zip
prune unneeded panics and debug output
Diffstat (limited to 'spinlock.c')
-rw-r--r--spinlock.c2
1 files changed, 0 insertions, 2 deletions
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