diff options
author | Peter Zijlstra <peterz@infradead.org> | 2012-02-11 06:05:00 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-10 16:17:10 +0100 |
commit | fed14d45f945042a15b09de48d7d3d58d9455fc4 (patch) | |
tree | 9f94e472cb3395023a7b29dfee17829fc75c8f0d /include/linux/sched.h | |
parent | 3c4017c13f91069194fce3160944efec50f15a6e (diff) | |
download | linux-stable-fed14d45f945042a15b09de48d7d3d58d9455fc4.tar.gz linux-stable-fed14d45f945042a15b09de48d7d3d58d9455fc4.tar.bz2 linux-stable-fed14d45f945042a15b09de48d7d3d58d9455fc4.zip |
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 { #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; |