lkml.org 
[lkml]   [2012]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] sched/rt: Move cpu rq properties from "struct rt_rq" to "struct rq"
From
Date
On Fri, 2012-12-21 at 02:16 +0400, Kirill Tkhai wrote:
> 20.12.2012, 21:53, "Thomas Gleixner" <tglx@linutronix.de>:
> > On Tue, 18 Dec 2012, Kirill Tkhai wrote:
> >
> >> The members rt_nr_total, rt_nr_migratory, overloaded and pushable_tasks are
> >> properties of cpu runqueue, not group rt_rq.
> >
> > Why?
>
> Because, they depend on number and properties of all processes of rq, not of nested rt_rq.
>

You're answer is still confusing.

struct rq {
[...]
struct rt_rq rt;


rt_rq is just a part of rq. What's the point?

rq = container_of(rt_rq, struct rt_rq, rt);

As the comment above struct rt_rq says:

/* Real-Time classes' related field in a runqueue: */

Those look like fields related to the Real-Time class. I don't see them
used outside of kernel/sched/rt.c

-- Steve

> >
> > Thanks,
> >
> > tglx




\
 
 \ /
  Last update: 2012-12-21 01:01    [W:0.056 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site