diff options
author | Peter Zijlstra <peterz@infradead.org> | 2012-02-11 09:05:00 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-10 19:17:10 +0400 |
commit | fed14d45f945042a15b09de48d7d3d58d9455fc4 (patch) | |
tree | 9f94e472cb3395023a7b29dfee17829fc75c8f0d /include/linux | |
parent | 3c4017c13f91069194fce3160944efec50f15a6e (diff) | |
download | linux-fed14d45f945042a15b09de48d7d3d58d9455fc4.tar.xz |
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')
-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 { #endif #ifdef CONFIG_FAIR_GROUP_SCHED + int depth; struct sched_entity *parent; /* rq on which this entity is (to be) queued: */ struct cfs_rq *cfs_rq; |