> You're right.
> I had the vague hope that by separating type definitions only
> some future cleanup might help us to cut down on the number of
> headers included by task_struct.h (currently 60).
> Introducing a full-blown task.h looks like killing sched.h completely
I like this: introduce a tasks.h to separate the task_struct and any
helper macros that depend on it.
We can keep sched.h though - but just for scheduler stuff from sched.c.
We need a place to put the prototypes, inlines, and defines from sched.c
and sched.h is the cleanest place.
It is the other stuff (task_struct most importantly, as you point out)
that needs to go.
> Killing ~600 #include <linux/sched.h> lines however seemed enough for a
> first round, so I left this for later iterations.
Indeed, good job.
Robert Love
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/