summaryrefslogtreecommitdiff
path: root/spinlock.c
diff options
context:
space:
mode:
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