1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

avoid checking the time slice for the idle task

This commit is contained in:
Stefan Lankes 2017-02-18 11:06:03 +01:00
parent cd06ff5b1a
commit 86b4e572e5

View file

@ -207,7 +207,7 @@ void check_scheduling(void)
if (prio > curr_task->prio) {
reschedule();
#ifdef DYNAMIC_TICKS
} else if (prio == curr_task->prio) {
} else if ((prio > 0) && (prio == curr_task->prio)) {
// if a task is ready, check if the current task runs already one tick (one time slice)
// => reschedule to realize round robin