diff options
| author | 2011-07-06 21:41:37 +0000 | |
|---|---|---|
| committer | 2011-07-06 21:41:37 +0000 | |
| commit | 971e1bb644cc0d78fb53db085bc59be6450a74f1 (patch) | |
| tree | e2988b45a31f25123d024255c4d969d752a2127f /sys/kern/kern_lock.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-971e1bb644cc0d78fb53db085bc59be6450a74f1.tar.xz wireguard-openbsd-971e1bb644cc0d78fb53db085bc59be6450a74f1.zip | |
Clean up after P_BIGLOCK removal.
KERNEL_PROC_LOCK -> KERNEL_LOCK
KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK
oga@ ok
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index bdc4f1129cd..c4588491077 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_lock.c,v 1.36 2011/07/06 01:49:42 art Exp $ */ +/* $OpenBSD: kern_lock.c,v 1.37 2011/07/06 21:41:37 art Exp $ */ /* * Copyright (c) 1995 @@ -369,23 +369,6 @@ _kernel_unlock(void) __mp_unlock(&kernel_lock); } -/* - * Acquire/release the kernel_lock on behalf of a process. Intended for - * use in the top half of the kernel. - */ -void -_kernel_proc_lock(struct proc *p) -{ - SCHED_ASSERT_UNLOCKED(); - __mp_lock(&kernel_lock); -} - -void -_kernel_proc_unlock(struct proc *p) -{ - __mp_unlock(&kernel_lock); -} - #ifdef MP_LOCKDEBUG /* CPU-dependent timing, needs this to be settable from ddb. */ int __mp_lock_spinout = 200000000; |
