aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMorten Rasmussen <Morten.Rasmussen@arm.com>2012-09-14 14:38:17 +0100
committerJon Medhurst <tixy@linaro.org>2013-07-17 11:12:25 +0100
commit76525733b4f4e0fdcc188dfe23941024ae626979 (patch)
tree3a164ba67a66dad63f8dd967dfa691cb571059e4 /include/linux
parent0d811e649ad31994e8f06b6b18101f249b34e912 (diff)
downloadvexpress-lsk-76525733b4f4e0fdcc188dfe23941024ae626979.tar.gz
sched: SCHED_HMP multi-domain task migration control
We need a way to prevent tasks that are migrating up and down the hmp_domains from migrating straight on through before the load has adapted to the new compute capacity of the CPU on the new hmp_domain. This patch adds a next up/down migration delay that prevents the task from doing another migration in the same direction until the delay has expired. Signed-off-by: Morten Rasmussen <Morten.Rasmussen@arm.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index cfb9a2efc21..5e903596e48 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -938,6 +938,10 @@ struct sched_avg {
s64 decay_count;
unsigned long load_avg_contrib;
unsigned long load_avg_ratio;
+#ifdef CONFIG_SCHED_HMP
+ u64 hmp_last_up_migration;
+ u64 hmp_last_down_migration;
+#endif
u32 usage_avg_sum;
};