]> git.karo-electronics.de Git - linux-beck.git/commit
sched/nohz: Correctly initialize 'next_balance' in 'nohz' idle balancer
authorDiwakar Tundlam <dtundlam@nvidia.com>
Wed, 7 Mar 2012 22:44:26 +0000 (14:44 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 Mar 2012 19:43:16 +0000 (20:43 +0100)
commit554cecaf733623b327eef9652b65965eb1081b81
tree4e471c4689563d3a882667323ece2e581d8f17c8
parent5fbd036b552f633abb394a319f7c62a5c86a9cd7
sched/nohz: Correctly initialize 'next_balance' in 'nohz' idle balancer

The 'next_balance' field of 'nohz' idle balancer must be initialized
to jiffies. Since jiffies is initialized to negative 300 seconds the
'nohz' idle balancer does not run for the first 300s (5mins) after
bootup. If no new processes are spawed or no idle cycles happen, the
load on the cpus will remain unbalanced for that duration.

Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1DD7BFEDD3147247B1355BEFEFE4665237994F30EF@HQMAIL04.nvidia.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched/fair.c