summaryrefslogtreecommitdiffstats
path: root/crypto/cast5_generic.c
diff options
context:
space:
mode:
authorValentin Schneider <valentin.schneider@arm.com>2019-01-17 16:34:07 +0100
committerIngo Molnar <mingo@kernel.org>2019-02-11 08:02:16 +0100
commit7edab78d7400ea0997f8e2e971004d824b5bb511 (patch)
treec6f0742d07fadac97ce26f0be924ea723309509d /crypto/cast5_generic.c
parentsched/topology: Fix percpu data types in struct sd_data & struct s_data (diff)
downloadlinux-7edab78d7400ea0997f8e2e971004d824b5bb511.tar.xz
linux-7edab78d7400ea0997f8e2e971004d824b5bb511.zip
sched/fair: Simplify nohz_balancer_kick()
Calling 'nohz_balance_exit_idle(rq)' will always clear 'rq->cpu' from 'nohz.idle_cpus_mask' if it is set. Since it is called at the top of 'nohz_balancer_kick()', 'rq->cpu' will never be set in 'nohz.idle_cpus_mask' if it is accessed in the rest of the function. Combine the 'sched_domain_span()' with 'nohz.idle_cpus_mask' and drop the '(i == cpu)' check since 'rq->cpu' will never be iterated over. While at it, clean up a condition alignment. Signed-off-by: Valentin Schneider <valentin.schneider@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Dietmar.Eggemann@arm.com Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: morten.rasmussen@arm.com Cc: vincent.guittot@linaro.org Link: https://lkml.kernel.org/r/20190117153411.2390-2-valentin.schneider@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'crypto/cast5_generic.c')
0 files changed, 0 insertions, 0 deletions