diff options
author | Paul Turner <pjt@google.com> | 2012-10-04 07:18:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-10-24 04:27:31 -0400 |
commit | f4e26b120b9de84cb627bc7361ba43cfdc51341f (patch) | |
tree | 19786e34c5de3c9b7c9c871a27b0f8d85cc8690d /include/linux/sched.h | |
parent | 5b51f2f80b3b906ce59bd4dce6eca3c7f34cb1b9 (diff) |
sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking
While per-entity load-tracking is generally useful, beyond computing shares
distribution, e.g. runnable based load-balance (in progress), governors,
power-management, etc.
These facilities are not yet consumers of this data. This may be trivially
reverted when the information is required; but avoid paying the overhead for
calculations we will not use until then.
Signed-off-by: Paul Turner <pjt@google.com>
Reviewed-by: Ben Segall <bsegall@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120823141507.422162369@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e483ccb08ce6..e1581a029e3d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1168,7 +1168,13 @@ struct sched_entity { | |||
1168 | /* rq "owned" by this entity/group: */ | 1168 | /* rq "owned" by this entity/group: */ |
1169 | struct cfs_rq *my_q; | 1169 | struct cfs_rq *my_q; |
1170 | #endif | 1170 | #endif |
1171 | #ifdef CONFIG_SMP | 1171 | /* |
1172 | * Load-tracking only depends on SMP, FAIR_GROUP_SCHED dependency below may be | ||
1173 | * removed when useful for applications beyond shares distribution (e.g. | ||
1174 | * load-balance). | ||
1175 | */ | ||
1176 | #if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED) | ||
1177 | /* Per-entity load-tracking */ | ||
1172 | struct sched_avg avg; | 1178 | struct sched_avg avg; |
1173 | #endif | 1179 | #endif |
1174 | }; | 1180 | }; |