summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>2001-02-22 20:16:51 +0000
committerTor Egge <tegge@FreeBSD.org>2001-02-22 20:16:51 +0000
commit9d0ddf1861142f3df9c288c98ccb6b0fcb4e6864 (patch)
tree2c8f762901de8e3eae1947ce228764f1f4ddf91c /sys/kern/kern_exit.c
parent35030da9f8e55c617e73b294078d7ae33735ff89 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 08cbb28e280c..81cbdb99b06e 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -118,7 +118,6 @@ exit1(p, rv)
register struct proc *q, *nq;
register struct vmspace *vm;
struct exitlist *ep;
- struct timeval new_switchtime;
if (p->p_pid == 1) {
printf("init died (signal %d, exit %d)\n",
@@ -327,10 +326,9 @@ exit1(p, rv)
* counted somewhere if possible.
*/
mtx_lock_spin(&sched_lock);
- microuptime(&new_switchtime);
- PCPU_SET(switchtime, new_switchtime);
- mtx_unlock_spin(&sched_lock);
+ microuptime(PCPU_PTR(switchtime));
PCPU_SET(switchticks, ticks);
+ mtx_unlock_spin(&sched_lock);
/*
* notify interested parties of our demise.