summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-09-05 14:38:16 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-09-05 14:38:16 +0000
commit34d49f8f61c473b5a68a77d4967cc01eb1589e56 (patch)
tree89a229b9d4754bd6e402f6ab206ca87db6ff9079 /sys
parent7f686eeee2f24b08dd27f76649b28e5c3a7ad05f (diff)
Back out previous. Art realised a problem with it.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_synch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 332ae51cf98..822239c5ed9 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_synch.c,v 1.85 2008/09/05 14:17:50 art Exp $ */
+/* $OpenBSD: kern_synch.c,v 1.86 2008/09/05 14:38:15 oga Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*
@@ -156,7 +156,7 @@ msleep(void *ident, struct mutex *mtx, int priority, const char *wmesg, int tim
* correct when the sched_lock is a mutex.
*/
spl = MUTEX_OLDIPL(mtx);
- MUTEX_OLDIPL(mtx) = IPL_SCHED;
+ MUTEX_OLDIPL(mtx) = splsched();
mtx_leave(mtx);
}