Skip to content

Commit

Permalink
call directly sched_yield to reduce overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed May 4, 2016
1 parent 0a34874 commit a7f6048
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sched_yield.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
#include "implement.h"
#include "sched.h"

#ifdef __hermit__
void reschedule (void);
#endif

int
sched_yield (void)
/*
Expand Down Expand Up @@ -76,7 +80,11 @@ sched_yield (void)
* ------------------------------------------------------
*/
{
#ifdef __hermit__
reschedule ();
#else
pte_osYield ();
#endif

return 0;
}

0 comments on commit a7f6048

Please sign in to comment.