aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2011-10-21 09:02:47 +0200
committerAndrey Konovalov <andrey.konovalov@linaro.org>2012-01-06 21:55:33 +0400
commit2eb6f8b98d8471c83be7e3ab53fe4386884c96a9 (patch)
tree6edc1527bc1d84e65e4ddee9ef4f933c1d39becb /include
parent2b21b980917662503a16e079b5d4a5a8a17886cd (diff)
sched: Ensure cpu_power periodic update
With a lot of small task, the softirq sched is nearly never called when no_hz is enable. Te 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 Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 1c4f3e9b9bc..8b1c79aa844 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -901,6 +901,7 @@ struct sched_group_power {
* single CPU.
*/
unsigned int power, power_orig;
+ unsigned long next_update;
};
struct sched_group {