diff options
| author | 2017-12-04 09:38:20 +0000 | |
|---|---|---|
| committer | 2017-12-04 09:38:20 +0000 | |
| commit | 25391aceeff3784e353740a04fe0c6eb34daed23 (patch) | |
| tree | 35c914eae2cbdf24bb7047f9bcfab132eaffb36f /sys/kern/sched_bsd.c | |
| parent | If we wanted to send out more proposals than just one, we need to set a (diff) | |
| download | wireguard-openbsd-25391aceeff3784e353740a04fe0c6eb34daed23.tar.xz wireguard-openbsd-25391aceeff3784e353740a04fe0c6eb34daed23.zip | |
Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).
ok visa@
Diffstat (limited to 'sys/kern/sched_bsd.c')
| -rw-r--r-- | sys/kern/sched_bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sched_bsd.c b/sys/kern/sched_bsd.c index e594fbfbed1..b4de163a296 100644 --- a/sys/kern/sched_bsd.c +++ b/sys/kern/sched_bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sched_bsd.c,v 1.46 2017/02/14 10:31:15 mpi Exp $ */ +/* $OpenBSD: sched_bsd.c,v 1.47 2017/12/04 09:38:20 mpi Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -354,7 +354,7 @@ mi_switch(void) * Release the kernel_lock, as we are about to yield the CPU. */ sched_count = __mp_release_all_but_one(&sched_lock); - if (__mp_lock_held(&kernel_lock)) + if (_kernel_lock_held()) hold_count = __mp_release_all(&kernel_lock); else hold_count = 0; |
