summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_status.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c
index 87d3c0b..b832f42 100644
--- a/sys/fs/procfs/procfs_status.c
+++ b/sys/fs/procfs/procfs_status.c
@@ -124,12 +124,12 @@ procfs_doprocstatus(PFS_FILL_ARGS)
} else
wmesg = "nochan";
}
+ mtx_unlock_spin(&sched_lock);
if (p->p_sflag & PS_INMEM) {
struct timeval start, ut, st;
- calcru(p, &ut, &st, (struct timeval *) NULL);
- mtx_unlock_spin(&sched_lock);
+ calcru(p, &ut, &st);
start = p->p_stats->p_start;
timevaladd(&start, &boottime);
sbuf_printf(sb, " %ld,%ld %ld,%ld %ld,%ld",
@@ -137,7 +137,6 @@ procfs_doprocstatus(PFS_FILL_ARGS)
ut.tv_sec, ut.tv_usec,
st.tv_sec, st.tv_usec);
} else {
- mtx_unlock_spin(&sched_lock);
sbuf_printf(sb, " -1,-1 -1,-1 -1,-1");
}
OpenPOWER on IntegriCloud