projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72ff0b
)
[PATCH] sched: include noninteractive sleep in idle detect
author
Con Kolivas
<
[email protected]
>
Fri, 31 Mar 2006 10:31:27 +0000
(
02:31
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 31 Mar 2006 20:18:59 +0000
(12:18 -0800)
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 <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 7b371931114f56b1c0a9b168364d412ab58bf72c..3055fe806ff701a34c3795d5861b6d98cf6059e1 100644
(file)
--- 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 -