Skip to content
Snippets Groups Projects
Commit 9b21d488 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

SCHED: do not set tasks back to RUN state if they come out of their

       time slice in a state other than BUSY
parent 2a305ab6
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,8 @@ static void sched_update_runtime(struct task_struct *task, ktime now) ...@@ -43,6 +43,8 @@ static void sched_update_runtime(struct task_struct *task, ktime now)
task->runtime = ktime_sub(task->runtime, rt); task->runtime = ktime_sub(task->runtime, rt);
task->total = ktime_add(task->total, rt); task->total = ktime_add(task->total, rt);
if (task->state == TASK_BUSY)
task->state = TASK_RUN; task->state = TASK_RUN;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment