Messages in this thread Patch in this message | | | Date | Thu, 5 Jul 2012 20:31:30 +0800 | Subject | [patch] BFS 421-1: fix selecting CPU for migrating nohz timer | From | Hillf Danton <> |
| |
Bail out walking the hierarchy of schedule domain only if a busy CPU is discovered.
SOB: Hillf Danton <dhillf@gmail.com> ---
--- a/kernel/sched/bfs.c Thu Jul 5 20:12:06 2012 +++ b/kernel/sched/bfs.c Thu Jul 5 20:12:50 2012 @@ -4937,9 +4937,10 @@ int get_nohz_timer_target(void) rcu_read_lock(); for_each_domain(cpu, sd) { for_each_cpu(i, sched_domain_span(sd)) { - if (!idle_cpu(i)) + if (!idle_cpu(i)) { cpu = i; - goto unlock; + goto unlock; + } } } unlock: --
| |