summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 7b371931114..3055fe806ff 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 -