summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDiwakar Tundlam <dtundlam@nvidia.com>2012-01-18 18:58:57 -0800
committerVarun Colbert <vcolbert@nvidia.com>2012-01-30 11:46:41 -0800
commitd407746008e167f8d125dc6e12040a553e90f96d (patch)
treeb97d7156bdc37bfc50a4f1591078ac35957104ec /kernel
parent48878f4cded627ef80da192736b3103704e903a1 (diff)
scheduler: domain: init next_balance in nohz_idle_balancer with jiffies
Bug 878165 The next_balance parameter of nohz_idle_balancer should be initialized to jiffies since jiffies itself is initialized to 300 seconds shy of overflow. Otherwise, nohz_idle_balancer does not run for the first 5 mins after bootup. Change-Id: I18334451f394ead8ddad3b94d725635a31e0173b Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77300 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5525f209ebdf..f6cf5cbc64ba 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8186,6 +8186,7 @@ void __init sched_init(void)
atomic_set(&nohz.load_balancer, nr_cpu_ids);
atomic_set(&nohz.first_pick_cpu, nr_cpu_ids);
atomic_set(&nohz.second_pick_cpu, nr_cpu_ids);
+ nohz.next_balance = jiffies;
#endif
/* May be allocated at isolcpus cmdline parse time */
if (cpu_isolated_map == NULL)