From: Alan Cox Date: Sun, 29 Apr 2018 00:41:50 +0000 (+0100) Subject: sched_yield: simplify X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9087d54ba17102099ba6dd3c36cd26d95351201d;p=FUZIX.git sched_yield: simplify switchout now does the right thing for us --- diff --git a/Kernel/syscall_proc.c b/Kernel/syscall_proc.c index de246491..93b10358 100644 --- a/Kernel/syscall_proc.c +++ b/Kernel/syscall_proc.c @@ -620,7 +620,6 @@ _sched_yield (void) Function 62 arg_t _sched_yield(void) { - if (nready > 1) - switchout(); + switchout(); return 0; }