Skip to content
Snippets Groups Projects
Commit af3eccee 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,7 +43,9 @@ static void sched_update_runtime(struct task_struct *task, ktime now)
task->runtime = ktime_sub(task->runtime, rt);
task->total = ktime_add(task->total, rt);
task->state = TASK_RUN;
if (task->state == TASK_BUSY)
task->state = TASK_RUN;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment