diff options
| -rw-r--r-- | kernel/sched/rt.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 6892ed7d644b..f6aa3cdbee84 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c | |||
| @@ -112,6 +112,13 @@ static inline struct rt_rq *rt_rq_of_se(struct sched_rt_entity *rt_se) | |||
| 112 | return rt_se->rt_rq; | 112 | return rt_se->rt_rq; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | static inline struct rq *rq_of_rt_se(struct sched_rt_entity *rt_se) | ||
| 116 | { | ||
| 117 | struct rt_rq *rt_rq = rt_se->rt_rq; | ||
| 118 | |||
| 119 | return rt_rq->rq; | ||
| 120 | } | ||
| 121 | |||
| 115 | void free_rt_sched_group(struct task_group *tg) | 122 | void free_rt_sched_group(struct task_group *tg) |
| 116 | { | 123 | { |
| 117 | int i; | 124 | int i; |
| @@ -211,10 +218,16 @@ static inline struct rq *rq_of_rt_rq(struct rt_rq *rt_rq) | |||
| 211 | return container_of(rt_rq, struct rq, rt); | 218 | return container_of(rt_rq, struct rq, rt); |
| 212 | } | 219 | } |
| 213 | 220 | ||
| 214 | static inline struct rt_rq *rt_rq_of_se(struct sched_rt_entity *rt_se) | 221 | static inline struct rq *rq_of_rt_se(struct sched_rt_entity *rt_se) |
| 215 | { | 222 | { |
| 216 | struct task_struct *p = rt_task_of(rt_se); | 223 | struct task_struct *p = rt_task_of(rt_se); |
| 217 | struct rq *rq = task_rq(p); | 224 | |
| 225 | return task_rq(p); | ||
| 226 | } | ||
| 227 | |||
| 228 | static inline struct rt_rq *rt_rq_of_se(struct sched_rt_entity *rt_se) | ||
| 229 | { | ||
| 230 | struct rq *rq = rq_of_rt_se(rt_se); | ||
| 218 | 231 | ||
| 219 | return &rq->rt; | 232 | return &rq->rt; |
| 220 | } | 233 | } |
