* sched.c (sched_yield): Just call SwitchToThread because yield now

potentially switches CPU.
This commit is contained in:
Corinna Vinschen
2011-07-06 18:35:44 +00:00
parent 51b5e9211d
commit 5e6a91549e
2 changed files with 6 additions and 1 deletions

View File

@@ -483,7 +483,7 @@ sched_setscheduler (pid_t pid, int policy,
int
sched_yield ()
{
yield ();
SwitchToThread ();
return 0;
}
}