[patch] BFS 421-1: fix selecting CPU for migrating nohz timer

From: Hillf Danton
Date: Thu Jul 05 2012 - 08:31:26 EST


Bail out walking the hierarchy of schedule domain only if a busy CPU
is discovered.

SOB: Hillf Danton <dhillf@xxxxxxxxx>
---

--- 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:
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/