From: Wanpeng Li Date: Tue, 14 Oct 2014 02:22:39 +0000 (+0800) Subject: sched/deadline: Don't check SD_BALANCE_FORK X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d7e974cbf2fce2683f34ff33c173fd7ef5478c7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sched/deadline: Don't check SD_BALANCE_FORK 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 Signed-off-by: Peter Zijlstra (Intel) Link: http://lkml.kernel.org/r/1413253360-5318-1-git-send-email-wanpeng.li@linux.intel.com Cc: Linus Torvalds Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 8aaa971ffecd..fab3bf81bb7c 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -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);