summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2015-02-06 18:05:53 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:01:44 -0700
commit73b7708de7deb4e45af2063944f52241083c81d7 (patch)
tree74acf2033adb39e663bd3cb1bfd3816967219d5f /kernel/sched/sched.h
parenta5cb71df223160dc3ddeff332b8da8b689645fff (diff)
sched: Add cgroup-based criteria for upmigration
It may be desirable to discourage upmigration of tasks belonging to some cgroups. Add a per-cgroup flag (upmigrate_discourage) that discourages upmigration of tasks of a cgroup. Tasks of the cgroup are allowed to upmigrate only under overcommitted scenario. Change-Id: I1780e420af1b6865c5332fb55ee1ee408b74d8ce Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org> [rameezmustafa@codeaurora.org: Use new cgroup APIs] Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index eae7973b37b9..d897c967bb87 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -241,6 +241,9 @@ struct task_group {
struct cgroup_subsys_state css;
bool notify_on_migrate;
+#ifdef CONFIG_SCHED_HMP
+ bool upmigrate_discouraged;
+#endif
#ifdef CONFIG_FAIR_GROUP_SCHED
/* schedulable entities of this group on each cpu */