lkml.org 
[lkml]   [2010]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] sched: use EDF to schedule groups
> From: Peter Zijlstra <peterz@infradead.org>
> Date: Thu, Feb 25, 2010 09:28:20PM +0100
>
> On Tue, 2010-02-23 at 19:56 +0100, Fabio Checconi wrote:
> > @@ -36,7 +29,8 @@ static inline struct task_struct *rt_task_of(struct sched_rt_entity *rt_se)
> >
> > static inline struct rq *rq_of_rt_rq(struct rt_rq *rt_rq)
> > {
> > - return container_of(rt_rq, struct rq, rt);
> > + struct rt_root_rq *rt = container_of(rt_rq, struct rt_root_rq, rt_rq);
> > + return container_of(rt, struct rq, rt);
> > }
>
> I think you can write that double container_of() as a single:
>
> return container_of(rt_rq, struct rq, rt.rt_rq);
>

I'll fix it, thanks.


\
 
 \ /
  Last update: 2010-03-03 17:49    [from the cache]
©2003-2011 Jasper Spaans