From 9087d54ba17102099ba6dd3c36cd26d95351201d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 29 Apr 2018 01:41:50 +0100 Subject: [PATCH] sched_yield: simplify switchout now does the right thing for us --- Kernel/syscall_proc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.34.1