diff options
author | 2017-12-04 21:12:41 +0000 | |
---|---|---|
committer | 2017-12-04 21:12:41 +0000 | |
commit | a5b9b43c45b11a12da1ce00018a13a2424a1f946 (patch) | |
tree | 0d445af0a58dcef0a29437e36f2ddb8eb653f726 | |
parent | Remove duplicate check that never could execute because the exact same (diff) | |
download | wireguard-openbsd-a5b9b43c45b11a12da1ce00018a13a2424a1f946.tar.xz wireguard-openbsd-a5b9b43c45b11a12da1ce00018a13a2424a1f946.zip |
Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).
Missed in previous, found by deraadt@, ok visa@
-rw-r--r-- | sys/arch/i386/i386/ipifuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/ipifuncs.c b/sys/arch/i386/i386/ipifuncs.c index 0cf14bd0809..8b3e8b3d446 100644 --- a/sys/arch/i386/i386/ipifuncs.c +++ b/sys/arch/i386/i386/ipifuncs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipifuncs.c,v 1.29 2016/10/21 16:57:53 deraadt Exp $ */ +/* $OpenBSD: ipifuncs.c,v 1.30 2017/12/04 21:12:41 mpi Exp $ */ /* $NetBSD: ipifuncs.c,v 1.1.2.3 2000/06/26 02:04:06 sommerfeld Exp $ */ /*- @@ -113,7 +113,7 @@ void i386_ipi_halt(struct cpu_info *ci) { SCHED_ASSERT_UNLOCKED(); - KASSERT(!__mp_lock_held(&kernel_lock)); + KASSERT(!_kernel_lock_held()); npxsave_cpu(ci, 1); disable_intr(); |