lkml.org 
[lkml]   [2012]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[patch] BFS 421-1: fix selecting CPU for migrating nohz timer
From
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:
--

\
 
 \ /
  Last update: 2012-07-05 15:21    [W:0.024 / U:6.460 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site