From 86b4e572e575d025f8e6c0d56b2fbc0f3c3022e0 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 18 Feb 2017 11:06:03 +0100 Subject: [PATCH] avoid checking the time slice for the idle task --- kernel/tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/tasks.c b/kernel/tasks.c index 80fccfdb6..52545c0fd 100644 --- a/kernel/tasks.c +++ b/kernel/tasks.c @@ -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