diff options
| -rw-r--r-- | kernel/sched/fair.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 58edbbdeb661..0692c8ff6ff6 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
| @@ -9615,7 +9615,7 @@ static void nohz_balancer_kick(struct rq *rq) | |||
| 9615 | sd = rcu_dereference(rq->sd); | 9615 | sd = rcu_dereference(rq->sd); |
| 9616 | if (sd) { | 9616 | if (sd) { |
| 9617 | if ((rq->cfs.h_nr_running >= 1) && | 9617 | if ((rq->cfs.h_nr_running >= 1) && |
| 9618 | check_cpu_capacity(rq, sd)) { | 9618 | check_cpu_capacity(rq, sd)) { |
| 9619 | flags = NOHZ_KICK_MASK; | 9619 | flags = NOHZ_KICK_MASK; |
| 9620 | goto unlock; | 9620 | goto unlock; |
| 9621 | } | 9621 | } |
| @@ -9623,11 +9623,7 @@ static void nohz_balancer_kick(struct rq *rq) | |||
| 9623 | 9623 | ||
| 9624 | sd = rcu_dereference(per_cpu(sd_asym_packing, cpu)); | 9624 | sd = rcu_dereference(per_cpu(sd_asym_packing, cpu)); |
| 9625 | if (sd) { | 9625 | if (sd) { |
| 9626 | for_each_cpu(i, sched_domain_span(sd)) { | 9626 | for_each_cpu_and(i, sched_domain_span(sd), nohz.idle_cpus_mask) { |
| 9627 | if (i == cpu || | ||
| 9628 | !cpumask_test_cpu(i, nohz.idle_cpus_mask)) | ||
| 9629 | continue; | ||
| 9630 | |||
| 9631 | if (sched_asym_prefer(i, cpu)) { | 9627 | if (sched_asym_prefer(i, cpu)) { |
| 9632 | flags = NOHZ_KICK_MASK; | 9628 | flags = NOHZ_KICK_MASK; |
| 9633 | goto unlock; | 9629 | goto unlock; |
