Skip to content

Commit

Permalink
sched/deadline: Don't check SD_BALANCE_FORK
Browse files Browse the repository at this point in the history
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 <wanpeng.li@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1413253360-5318-1-git-send-email-wanpeng.li@linux.intel.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Wanpeng Li authored and Ingo Molnar committed Oct 28, 2014
1 parent f82f804 commit 1d7e974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/deadline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d7e974

Please sign in to comment.