kern_synch.c (2077229b56b5597e10fb368e25cb04e04493beb4) | kern_synch.c (06bf2a6aefbf98f0717954368a8791cd70bfba30) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1982, 1986, 1990, 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 133 unchanged lines hidden (view full) --- 142 ktrcsw(1, 0, wmesg); 143#endif 144 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, lock, 145 "Sleeping on \"%s\"", wmesg); 146 KASSERT(sbt != 0 || mtx_owned(&Giant) || lock != NULL, 147 ("sleeping without a lock")); 148 KASSERT(ident != NULL, ("_sleep: NULL ident")); 149 KASSERT(TD_IS_RUNNING(td), ("_sleep: curthread not running")); | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1982, 1986, 1990, 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 133 unchanged lines hidden (view full) --- 142 ktrcsw(1, 0, wmesg); 143#endif 144 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, lock, 145 "Sleeping on \"%s\"", wmesg); 146 KASSERT(sbt != 0 || mtx_owned(&Giant) || lock != NULL, 147 ("sleeping without a lock")); 148 KASSERT(ident != NULL, ("_sleep: NULL ident")); 149 KASSERT(TD_IS_RUNNING(td), ("_sleep: curthread not running")); |
150 KASSERT(td->td_epochnest == 0, ("sleeping in an epoch section")); |
|
150 if (priority & PDROP) 151 KASSERT(lock != NULL && lock != &Giant.lock_object, 152 ("PDROP requires a non-Giant lock")); 153 if (lock != NULL) 154 class = LOCK_CLASS(lock); 155 else 156 class = NULL; 157 --- 416 unchanged lines hidden --- | 151 if (priority & PDROP) 152 KASSERT(lock != NULL && lock != &Giant.lock_object, 153 ("PDROP requires a non-Giant lock")); 154 if (lock != NULL) 155 class = LOCK_CLASS(lock); 156 else 157 class = NULL; 158 --- 416 unchanged lines hidden --- |