kern_synch.c (67350cb56a69468c118bd4ccf6e361b7ebfa9eb4) kern_synch.c (f91aa773bea2bd0dff2d021c2d78fe78da78d52d)
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

--- 354 unchanged lines hidden (view full) ---

363
364 sleepq_lock(ident);
365 wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP, 0, 0);
366 sleepq_release(ident);
367 if (wakeup_swapper)
368 kick_proc0();
369}
370
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

--- 354 unchanged lines hidden (view full) ---

363
364 sleepq_lock(ident);
365 wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP, 0, 0);
366 sleepq_release(ident);
367 if (wakeup_swapper)
368 kick_proc0();
369}
370
371void
372wakeup_any(void *ident)
373{
374 int wakeup_swapper;
375
376 sleepq_lock(ident);
377 wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP | SLEEPQ_UNFAIR,
378 0, 0);
379 sleepq_release(ident);
380 if (wakeup_swapper)
381 kick_proc0();
382}
383
371static void
372kdb_switch(void)
373{
374 thread_unlock(curthread);
375 kdb_backtrace();
376 kdb_reenter();
377 panic("%s: did not reenter debugger", __func__);
378}

--- 197 unchanged lines hidden ---
384static void
385kdb_switch(void)
386{
387 thread_unlock(curthread);
388 kdb_backtrace();
389 kdb_reenter();
390 panic("%s: did not reenter debugger", __func__);
391}

--- 197 unchanged lines hidden ---