diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2011-12-06 14:26:34 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-06 14:51:29 -0500 |
commit | cd490c5b285544dc1319cf79c2ca0528a6447f61 (patch) | |
tree | ee419d467f8e44f8ce596ea4cec1e514baeec7c9 /kernel/sched/fair.c | |
parent | 8a6d42d1b32ad239c28f445138ea9c19aa52dd20 (diff) |
sched, nohz: Set the NOHZ_BALANCE_KICK flag for idle load balancer
Intention is to set the NOHZ_BALANCE_KICK flag for the 'ilb_cpu'. Not
for the 'cpu' which is the local cpu. Fix the typo.
Reported-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1323199594.1984.18.camel@sbsiddha-desk.sc.intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched/fair.c')
-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 8be45edca41a..6482136f8991 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -4853,7 +4853,7 @@ static void nohz_balancer_kick(int cpu) | |||
4853 | if (ilb_cpu >= nr_cpu_ids) | 4853 | if (ilb_cpu >= nr_cpu_ids) |
4854 | return; | 4854 | return; |
4855 | 4855 | ||
4856 | if (test_and_set_bit(NOHZ_BALANCE_KICK, nohz_flags(cpu))) | 4856 | if (test_and_set_bit(NOHZ_BALANCE_KICK, nohz_flags(ilb_cpu))) |
4857 | return; | 4857 | return; |
4858 | /* | 4858 | /* |
4859 | * Use smp_send_reschedule() instead of resched_cpu(). | 4859 | * Use smp_send_reschedule() instead of resched_cpu(). |