sched_yield: simplify
authorAlan Cox <alan@linux.intel.com>
Sun, 29 Apr 2018 00:41:50 +0000 (01:41 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 29 Apr 2018 00:41:50 +0000 (01:41 +0100)
switchout now does the right thing for us

Kernel/syscall_proc.c

index de24649..93b1035 100644 (file)
@@ -620,7 +620,6 @@ _sched_yield (void)              Function 62
 
 arg_t _sched_yield(void)
 {
-       if (nready > 1)
-               switchout();
+       switchout();
        return 0;
 }