diff options
| author | Valentin Schneider <[email protected]> | 2019-01-17 15:34:07 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2019-02-11 07:02:16 +0000 |
| commit | 7edab78d7400ea0997f8e2e971004d824b5bb511 (patch) | |
| tree | c6f0742d07fadac97ce26f0be924ea723309509d /drivers/fpga/zynqmp-fpga.c | |
| parent | sched/topology: Fix percpu data types in struct sd_data & struct s_data (diff) | |
| download | kernel-7edab78d7400ea0997f8e2e971004d824b5bb511.tar.gz kernel-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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions
