diff options
author | Byungchul Park <[email protected]> | 2017-05-12 10:05:43 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-05-23 10:01:33 +0200 |
commit | de16b91effdbf5aeff8346b99bcd0991a5362db9 (patch) | |
tree | a0a3fefa5625c3d9c0b3354e52d45ca96b761c40 /lib/netdev-notifier-error-inject.c | |
parent | 73215849dfbf63421c1cafea5a1b6da9bb17831e (diff) |
sched/rt: Remove unnecessary condition in push_rt_task()
pick_next_pushable_task(rq) has BUG_ON(rq_cpu != task_cpu(task)) when
it returns a task other than NULL, which means that task_cpu(task) must
be rq->cpu. So if task == next_task, then task_cpu(next_task) must be
rq->cpu as well. Remove the redundant condition and make the code simpler.
This way one unnecessary branch and two LOAD operations can be avoided.
Signed-off-by: Byungchul Park <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Steven Rostedt (VMware) <[email protected]>
Reviewed-by: Juri Lelli <[email protected]>
Reviewed-by: Daniel Bristot de Oliveira <[email protected]>
Cc: <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions