Commit 5138930e authored by Con Kolivas's avatar Con Kolivas Committed by Linus Torvalds

[PATCH] sched: include noninteractive sleep in idle detect

Tasks waiting in SLEEP_NONINTERACTIVE state can now get to best priority so
they need to be included in the idle detection code.
Signed-off-by: default avatarCon Kolivas <kernel@kolivas.org>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e72ff0bb
...@@ -705,8 +705,7 @@ static int recalc_task_prio(task_t *p, unsigned long long now) ...@@ -705,8 +705,7 @@ static int recalc_task_prio(task_t *p, unsigned long long now)
* active yet prevent them suddenly becoming cpu hogs and * active yet prevent them suddenly becoming cpu hogs and
* starving other processes. * starving other processes.
*/ */
if (p->mm && p->sleep_type != SLEEP_NONINTERACTIVE && if (p->mm && sleep_time > INTERACTIVE_SLEEP(p)) {
sleep_time > INTERACTIVE_SLEEP(p)) {
unsigned long ceiling; unsigned long ceiling;
ceiling = JIFFIES_TO_NS(MAX_SLEEP_AVG - ceiling = JIFFIES_TO_NS(MAX_SLEEP_AVG -
......
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