Re: [PATCH 3/6] sched: Avoid redundant initialization of runqueues

From: Peter Zijlstra
Date: Wed Jul 13 2011 - 16:47:50 EST


On Wed, 2011-07-13 at 20:13 +0200, Jan H. SchÃnherr wrote:
> Within sched_init() the functions init_{cfs,rt}_rq() are called
> unconditionally. However, when group scheduling is enabled, those calls
> are also done in init_tg_{cfs,rt}_entry().
>
> To avoid this redundant initialization, the direct calls within
> sched_init() to init_{cfs,rt}_rq() are dropped in case of enabled group
> scheduling.

But it adds #ifdef muck..

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