sync
This commit is contained in:
parent
777fb69d26
commit
905ea23f06
42 changed files with 776 additions and 381 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: drm_linux.c,v 1.98 2023/06/01 10:21:26 claudio Exp $ */
|
||||
/* $OpenBSD: drm_linux.c,v 1.99 2023/06/28 08:23:25 claudio Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
|
||||
* Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
|
||||
|
@ -135,14 +135,15 @@ schedule_timeout(long timeout)
|
|||
{
|
||||
struct sleep_state sls;
|
||||
unsigned long deadline;
|
||||
int wait, spl, timo = 0;
|
||||
int wait, spl, prio, timo = 0;
|
||||
|
||||
MUTEX_ASSERT_LOCKED(&sch_mtx);
|
||||
KASSERT(!cold);
|
||||
|
||||
if (timeout != MAX_SCHEDULE_TIMEOUT)
|
||||
timo = timeout;
|
||||
sleep_setup(&sls, sch_ident, sch_priority, "schto", timo);
|
||||
prio = sch_priority;
|
||||
sleep_setup(&sls, sch_ident, prio, "schto");
|
||||
|
||||
wait = (sch_proc == curproc && timeout > 0);
|
||||
|
||||
|
@ -152,7 +153,7 @@ schedule_timeout(long timeout)
|
|||
|
||||
if (timeout != MAX_SCHEDULE_TIMEOUT)
|
||||
deadline = jiffies + timeout;
|
||||
sleep_finish(&sls, wait);
|
||||
sleep_finish(&sls, prio, timo, wait);
|
||||
if (timeout != MAX_SCHEDULE_TIMEOUT)
|
||||
timeout = deadline - jiffies;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: if_myx.c,v 1.116 2022/03/11 18:00:48 mpi Exp $ */
|
||||
/* $OpenBSD: if_myx.c,v 1.117 2023/06/28 08:23:25 claudio Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
|
||||
|
@ -1397,9 +1397,9 @@ myx_down(struct myx_softc *sc)
|
|||
(void)myx_cmd(sc, MYXCMD_SET_IFDOWN, &mc, NULL);
|
||||
|
||||
while (sc->sc_state != MYX_S_OFF) {
|
||||
sleep_setup(&sls, sts, PWAIT, "myxdown", 0);
|
||||
sleep_setup(&sls, sts, PWAIT, "myxdown");
|
||||
membar_consumer();
|
||||
sleep_finish(&sls, sc->sc_state != MYX_S_OFF);
|
||||
sleep_finish(&sls, PWAIT, 0, sc->sc_state != MYX_S_OFF);
|
||||
}
|
||||
|
||||
s = splnet();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue