Re: [PATCH 1/2] headers: move release_kernel_lock(),reacquire_kernel_lock() to sched.c

From: Ingo Molnar
Date: Wed Oct 29 2008 - 12:43:22 EST



* Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

> On Wed, Oct 29, 2008 at 06:04:37AM -0400, Christoph Hellwig wrote:
> > On Wed, Oct 29, 2008 at 07:18:27AM +0100, Ingo Molnar wrote:
> > > please dont move #ifdefs and interfaces into a .c file - if then move
> > > it into another header file.
> >
> > Sorry, but that makes no sense at all. This stuff is implementation
> > private to sched.c, and adding some header for it is just braindead.
>
> Well, yes, that was the logic behind move -- keep it private to scheduler.

i have no objections at all against the whole sched.h cleanup
(reducing header file dependencies is a much needed activity). But
please keep it in a header file - i.e. put it into
kernel/sched_internals.h. (like we do it for
kernel/lockdep_internals.h)

that could then probably be merged with kernel/sched_stats.h as well.
(which too is an #ifdef laden interface piece of code we have moved
into a header)

Thanks,

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