* sched.c (sched_yield): Just call SwitchToThread because yield now
potentially switches CPU.
This commit is contained in:
@@ -483,7 +483,7 @@ sched_setscheduler (pid_t pid, int policy,
|
||||
int
|
||||
sched_yield ()
|
||||
{
|
||||
yield ();
|
||||
SwitchToThread ();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user