diff options
author | Peter Zijlstra <peterz@infradead.org> | 2012-02-11 00:05:00 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-10 10:17:10 -0500 |
commit | fed14d45f945042a15b09de48d7d3d58d9455fc4 (patch) | |
tree | 9f94e472cb3395023a7b29dfee17829fc75c8f0d /include/linux/sched.h | |
parent | 3c4017c13f91069194fce3160944efec50f15a6e (diff) |
sched/fair: Track cgroup depth
Track depth in cgroup tree, this is useful for things like
find_matching_se() where you need to get to a common parent of two
sched entities.
Keeping the depth avoids having to calculate it on the spot, which
saves a number of possible cache-misses.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1328936700.2476.17.camel@laptop
Signed-off-by: Ingo Molnar <mingo@kernel.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 e3d556427b2e..555e27d717c0 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1078,6 +1078,7 @@ struct sched_entity { | |||
1078 | #endif | 1078 | #endif |
1079 | 1079 | ||
1080 | #ifdef CONFIG_FAIR_GROUP_SCHED | 1080 | #ifdef CONFIG_FAIR_GROUP_SCHED |
1081 | int depth; | ||
1081 | struct sched_entity *parent; | 1082 | struct sched_entity *parent; |
1082 | /* rq on which this entity is (to be) queued: */ | 1083 | /* rq on which this entity is (to be) queued: */ |
1083 | struct cfs_rq *cfs_rq; | 1084 | struct cfs_rq *cfs_rq; |