Skip to content

Commit

Permalink
sched/deadline: Don't check CONFIG_SMP in switched_from_dl()
Browse files Browse the repository at this point in the history
There are both UP and SMP version of pull_dl_task(), so don't need
to check CONFIG_SMP in switched_from_dl();

Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@arm.com>
Cc: Kirill Tkhai <ktkhai@parallels.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1414708776-124078-6-git-send-email-wanpeng.li@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Wanpeng Li authored and Ingo Molnar committed Nov 4, 2014
1 parent cd66091 commit cad3bb3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/sched/deadline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,6 @@ static void switched_from_dl(struct rq *rq, struct task_struct *p)

__dl_clear_params(p);

#ifdef CONFIG_SMP
/*
* Since this might be the only -deadline task on the rq,
* this is the right place to try to pull some other one
Expand All @@ -1648,7 +1647,6 @@ static void switched_from_dl(struct rq *rq, struct task_struct *p)

if (pull_dl_task(rq))
resched_curr(rq);
#endif
}

/*
Expand Down

0 comments on commit cad3bb3

Please sign in to comment.