diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-04-19 13:45:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:45:00 -0400 |
commit | 58d6c2d72f8628f39e8689fbde8aa177fcf00a37 (patch) | |
tree | 0be40bd788856b3cabb99ff258561b15a574f2f3 /include/linux | |
parent | d19ca30874f2ad343d054e0b5c0576744afeecd4 (diff) |
sched: rt-group: optimize dequeue_rt_stack
Now that the group hierarchy can have an arbitrary depth the O(n^2) nature
of RT task dequeues will really hurt. Optimize this by providing space to
store the tree path, so we can walk it the other way.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 0a32059e6ed4..887f5db8942d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1005,6 +1005,7 @@ struct sched_rt_entity { | |||
1005 | unsigned long timeout; | 1005 | unsigned long timeout; |
1006 | int nr_cpus_allowed; | 1006 | int nr_cpus_allowed; |
1007 | 1007 | ||
1008 | struct sched_rt_entity *back; | ||
1008 | #ifdef CONFIG_RT_GROUP_SCHED | 1009 | #ifdef CONFIG_RT_GROUP_SCHED |
1009 | struct sched_rt_entity *parent; | 1010 | struct sched_rt_entity *parent; |
1010 | /* rq on which this entity is (to be) queued: */ | 1011 | /* rq on which this entity is (to be) queued: */ |