Re: [PATCH] sched: try to rewrite tg_has_rt_tasks()

From: Yong Zhang
Date: Sat Apr 23 2011 - 10:31:54 EST


On Sat, Apr 23, 2011 at 10:19:19PM +0800, Hillf Danton wrote:
> On Sat, Apr 23, 2011 at 10:11 PM, Yong Zhang <yong.zhang0@xxxxxxxxx> wrote:
> > On Sat, Apr 23, 2011 at 09:39:40PM +0800, Hillf Danton wrote:
> >> It is reshuffled not based upon scanning the list of existing threads
> >> but upon the relevant info carried by the input task group. Compared
> >> with the original, it is simpler, and nothing important is missed.
> >
> > Oh, no.
> >
> > There may be sleep task which is attach this group.
> >
>
> Would you please say a few more words about the "sleep task"?

Only RUNNING task is counted to rt_nr_running, SLEEP task
is not on the run queue.

Thanks,
Yong
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/