public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/5] sched-include_noninteractive_sleep_in_idle_detect.patch
@ 2006-01-13 10:23 Con Kolivas
  0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2006-01-13 10:23 UTC (permalink / raw)
  To: linux kernel mailing list; +Cc: Andrew Morton, Ingo Molnar

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

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>

 kernel/sched.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6.15/kernel/sched.c
===================================================================
--- linux-2.6.15.orig/kernel/sched.c
+++ linux-2.6.15/kernel/sched.c
@@ -752,8 +752,7 @@ static int recalc_task_prio(task_t *p, u
 		 * 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 -

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-13 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-13 10:23 [PATCH 5/5] sched-include_noninteractive_sleep_in_idle_detect.patch Con Kolivas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox