sched/deadline: Don't check SD_BALANCE_FORK
authorWanpeng Li <[email protected]>
Tue, 14 Oct 2014 02:22:39 +0000 (10:22 +0800)
committerIngo Molnar <[email protected]>
Tue, 28 Oct 2014 09:48:01 +0000 (10:48 +0100)
There is no need to do balance during fork since SCHED_DEADLINE
tasks can't fork. This patch avoid the SD_BALANCE_FORK check.

Signed-off-by: Wanpeng Li <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/deadline.c

index 8aaa971ffecd28a19ccc1fcaef1ef55bdf2fff4f..fab3bf81bb7c2e57a1235b34a21666e805f2b26f 100644 (file)
@@ -933,7 +933,7 @@ select_task_rq_dl(struct task_struct *p, int cpu, int sd_flag, int flags)
        struct task_struct *curr;
        struct rq *rq;
 
-       if (sd_flag != SD_BALANCE_WAKE && sd_flag != SD_BALANCE_FORK)
+       if (sd_flag != SD_BALANCE_WAKE)
                goto out;
 
        rq = cpu_rq(cpu);