kern_synch.c (354405) | kern_synch.c (359652) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_synch.c 8.9 (Berkeley) 5/19/95 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: stable/11/sys/kern/kern_synch.c 354405 2019-11-06 18:02:18Z mav $"); | 38__FBSDID("$FreeBSD: stable/11/sys/kern/kern_synch.c 359652 2020-04-06 07:16:31Z hselasky $"); |
39 40#include "opt_ktrace.h" 41#include "opt_sched.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/condvar.h> 46#include <sys/kdb.h> --- 55 unchanged lines hidden (view full) --- 102 hogticks = (hz / 10) * 2; /* Default only. */ 103 init_sleepqueues(); 104} 105 106/* 107 * vmem tries to lock the sleepq mutexes when free'ing kva, so make sure 108 * it is available. 109 */ | 39 40#include "opt_ktrace.h" 41#include "opt_sched.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/condvar.h> 46#include <sys/kdb.h> --- 55 unchanged lines hidden (view full) --- 102 hogticks = (hz / 10) * 2; /* Default only. */ 103 init_sleepqueues(); 104} 105 106/* 107 * vmem tries to lock the sleepq mutexes when free'ing kva, so make sure 108 * it is available. 109 */ |
110SYSINIT(sleepinit, SI_SUB_KMEM, SI_ORDER_ANY, sleepinit, 0); | 110SYSINIT(sleepinit, SI_SUB_KMEM, SI_ORDER_ANY, sleepinit, NULL); |
111 112/* 113 * General sleep call. Suspends the current thread until a wakeup is 114 * performed on the specified identifier. The thread will then be made 115 * runnable with the specified priority. Sleeps at most sbt units of time 116 * (0 means no timeout). If pri includes the PCATCH flag, let signals 117 * interrupt the sleep, otherwise ignore them while sleeping. Returns 0 if 118 * awakened, EWOULDBLOCK if the timeout expires. If PCATCH is set and a --- 470 unchanged lines hidden --- | 111 112/* 113 * General sleep call. Suspends the current thread until a wakeup is 114 * performed on the specified identifier. The thread will then be made 115 * runnable with the specified priority. Sleeps at most sbt units of time 116 * (0 means no timeout). If pri includes the PCATCH flag, let signals 117 * interrupt the sleep, otherwise ignore them while sleeping. Returns 0 if 118 * awakened, EWOULDBLOCK if the timeout expires. If PCATCH is set and a --- 470 unchanged lines hidden --- |