diff options
author | 2008-09-05 14:38:15 +0000 | |
---|---|---|
committer | 2008-09-05 14:38:15 +0000 | |
commit | 91c102133a39e60508ecc0ed763520a273bd3df4 (patch) | |
tree | b4214449772edf0dacf703a2095e6c8d7fd33306 | |
parent | Don't overwrite the old ipl in msleep if PNORELOCK was set. (diff) | |
download | wireguard-openbsd-91c102133a39e60508ecc0ed763520a273bd3df4.tar.xz wireguard-openbsd-91c102133a39e60508ecc0ed763520a273bd3df4.zip |
Back out previous. Art realised a problem with it.
-rw-r--r-- | sys/kern/kern_synch.c | 4 |
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); } |