Skip to content

Commit

Permalink
[PATCH] sched: include noninteractive sleep in idle detect
Browse files Browse the repository at this point in the history
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: Con Kolivas <kernel@kolivas.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Con Kolivas authored and Linus Torvalds committed Mar 31, 2006
1 parent e72ff0b commit 5138930
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* starving other processes.
*/
if (p->mm && p->sleep_type != SLEEP_NONINTERACTIVE &&
sleep_time > INTERACTIVE_SLEEP(p)) {
if (p->mm && sleep_time > INTERACTIVE_SLEEP(p)) {
unsigned long ceiling;

ceiling = JIFFIES_TO_NS(MAX_SLEEP_AVG -
Expand Down

0 comments on commit 5138930

Please sign in to comment.