From: Con Kolivas Date: Fri, 31 Mar 2006 10:31:27 +0000 (-0800) Subject: [PATCH] sched: include noninteractive sleep in idle detect X-Git-Tag: v3.12-rc1~36876 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5138930e6a69f1c7851a82d7cedaa01fad029fcf;p=kernel%2Fkernel-generic.git [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: Con Kolivas Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched.c b/kernel/sched.c index 7b37193..3055fe8 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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 -