Commit ba3d84f3 authored by Ingo Molnar's avatar Ingo Molnar

[PATCH] revert scheduler back-boosting

The problem with setiathome is that it displays something every now and
then - so it gets a backboost from X, and hovers at a relatively high
priority.
parent ecca22ec
......@@ -364,19 +364,8 @@ static inline int activate_task(task_t *p, runqueue_t *rq)
* boosting tasks that are related to maximum-interactive
* tasks.
*/
if (sleep_avg > MAX_SLEEP_AVG) {
if (!in_interrupt()) {
sleep_avg += current->sleep_avg - MAX_SLEEP_AVG;
if (sleep_avg > MAX_SLEEP_AVG)
sleep_avg = MAX_SLEEP_AVG;
if (current->sleep_avg != sleep_avg) {
current->sleep_avg = sleep_avg;
requeue_waker = 1;
}
}
sleep_avg = MAX_SLEEP_AVG;
}
if (p->sleep_avg != sleep_avg) {
p->sleep_avg = sleep_avg;
p->prio = effective_prio(p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment