diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2012-02-03 14:51:27 +0100 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2012-02-08 17:12:19 -0800 |
commit | d97065801d7f89dbf772b385fb2baa9d629a93ec (patch) | |
tree | 2f9f610454e3fb4d056f6c81457fe4ac9f688cd8 | |
parent | c97cd8fe5db0b23c86947e88a8c3665194c4f435 (diff) |
sched: use cpu capacity to decide if a ILB is neededscheduler
-rw-r--r-- | kernel/sched_fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index ac2acfbc7df1..1bd9ba32d7c4 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -4790,7 +4790,7 @@ static inline int nohz_kick_needed(struct rq *rq, int cpu) ret = atomic_cmpxchg(&nohz.first_pick_cpu, nr_cpu_ids, cpu); if (ret == nr_cpu_ids || ret == cpu) { atomic_cmpxchg(&nohz.second_pick_cpu, cpu, nr_cpu_ids); - if (rq->nr_running > 1) + if (rq->nr_running > DIV_ROUND_CLOSEST(rq->cpu_power, SCHED_POWER_SCALE)) return 1; } else { ret = atomic_cmpxchg(&nohz.second_pick_cpu, nr_cpu_ids, cpu); |