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:
parent
cd06ff5b1a
commit
86b4e572e5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue