9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f7cf4871113d42a46fccb1f3918e59026645f54f
parent 55b189e00e58679678b71b641d93b7c47d518c68
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Fri, 18 Nov 2022 15:19:26 +0100

os9: Return in sched with preemption locked

If we are running we don't have to restore any context
because the execution is expected to be resumed after
sched().

Diffstat:
Msrc/os9/proc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/os9/proc.c b/src/os9/proc.c @@ -521,7 +521,7 @@ sched(void) if (proc->state == TRUNNING) { if (proc->flags&TLOCK_PREEMP) - swtch(&proc->ctx); + return; proc->state = TREADY; } unlock(&proc->m);