summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-11 05:04:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-11 05:04:35 +0000
commitea149be26443cffcb92425f7cc6416d3a32ce1ea (patch)
tree67e6e5bd578e5272d4be87f5cb6c2297d98a3cc3 /sys
parentd447c4fd52d20a659d251fcc40f8b8f69bd03211 (diff)
splassert(IPL_STATCLOCK) mi_switch
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_synch.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index f9c6a576970..364485d7d22 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.42 2002/03/14 01:27:04 millert Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.43 2002/06/11 05:04:34 art Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
@@ -696,11 +696,13 @@ preempt(newp)
void
mi_switch()
{
- register struct proc *p = curproc; /* XXX */
- register struct rlimit *rlim;
- register long s, u;
+ struct proc *p = curproc; /* XXX */
+ struct rlimit *rlim;
+ long s, u;
struct timeval tv;
+ splassert(IPL_STATCLOCK);
+
/*
* Compute the amount of time during which the current
* process was running, and add that to its total so far.