Re: [RFC tg_shares_up improvements - v1 01/12] sched: rewritetg_shares_up

From: Peter Zijlstra
Date: Thu Oct 21 2010 - 05:08:30 EST


On Thu, 2010-10-21 at 13:38 +0530, Bharata B Rao wrote:
> > + se->on_rq = 0;
>
> Since setting and un-setting of se->on_rq is completely handled within
> sched_fair.c, we can remove the redundant setting and un-setting of
> se->on_rq from sched.c:[en]dequeue_task. Even w/o this patch, they were
> redundant I suppose.

sadly not, sched_rt.c also uses them. It really shouldn't live in
sched_entity but in a common set.

I've long wanted to rework all that into something like:

struct sched_entity {
/* common fields */
union {
struct sched_fair_entity fair;
struct sched_rt_entity rt;
};
};

But that never quite happened.

--
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/