diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2011-12-12 20:21:08 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-01-27 13:28:49 +0100 |
commit | 4ec4412e1e91f44a3dcb97b6c9172a13fc78bac9 (patch) | |
tree | a98f635907975c2f14c01c24418e102337250b8d /include/linux/sched.h | |
parent | 39be350127ec60a078edffe5b4915dafba4ba514 (diff) | |
download | lwn-4ec4412e1e91f44a3dcb97b6c9172a13fc78bac9.tar.gz lwn-4ec4412e1e91f44a3dcb97b6c9172a13fc78bac9.zip |
sched: Ensure cpu_power periodic update
With a lot of small tasks, the softirq sched is nearly never called
when no_hz is enabled. In this case load_balance() is mainly called
with the newly_idle mode which doesn't update the cpu_power.
Add a next_update field which ensure a maximum update period when
there is short activity.
Having stale cpu_power information can skew the load-balancing
decisions, this is cured by the guaranteed update.
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1323717668-2143-1-git-send-email-vincent.guittot@linaro.org
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0e1959568836..92313a3f6f77 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -905,6 +905,7 @@ struct sched_group_power { * single CPU. */ unsigned int power, power_orig; + unsigned long next_update; /* * Number of busy cpus in this group. */ |