diff options
author | Con Kolivas <kernel@kolivas.org> | 2006-03-31 05:31:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-31 15:18:59 -0500 |
commit | 5138930e6a69f1c7851a82d7cedaa01fad029fcf (patch) | |
tree | cef55be8eb6d798188127f2ca7f53ed25ef88422 /kernel | |
parent | e72ff0bb2c163eb13014ba113701bd42dab382fe (diff) |
[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 <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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7b371931114f..3055fe806ff7 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) | |||
705 | * active yet prevent them suddenly becoming cpu hogs and | 705 | * active yet prevent them suddenly becoming cpu hogs and |
706 | * starving other processes. | 706 | * starving other processes. |
707 | */ | 707 | */ |
708 | if (p->mm && p->sleep_type != SLEEP_NONINTERACTIVE && | 708 | if (p->mm && sleep_time > INTERACTIVE_SLEEP(p)) { |
709 | sleep_time > INTERACTIVE_SLEEP(p)) { | ||
710 | unsigned long ceiling; | 709 | unsigned long ceiling; |
711 | 710 | ||
712 | ceiling = JIFFIES_TO_NS(MAX_SLEEP_AVG - | 711 | ceiling = JIFFIES_TO_NS(MAX_SLEEP_AVG - |