I've done a first pass at the separation Dave Jones Suggested.
The patches are here (diff is 250k, BK patch 25k):
http://www.hansenpartnership.com/voyager/files/split-2.4.6.diff
http://www.hansenpartnership.com/voyager/files/split-2.4.6.BK
(The bitkeeper patch is much smaller because a lot of files are only moved).
This split introduces new generic and visw directories and pulls all of the
visw specific defines out of kernel (except for some tiny cases inside
smpboot.c which were rather difficult to hook out). It also contains
preparatory abstraction work for me doing the same split for my voyager patch.
The basics of the patch are:
- creating a set of hooks which all archs must supply (asm-i386/arch_hooks.h)
- adding some arch specific includes for inline functions (currently only for
hooks in the timer interrupt).
- using more fine grained CONFIG_X86_* options to turn on and off other pieces
of the compile.
Please provide feedback; I'm going to continue on now and try to place voyager
in this abstraction (so I'll probably be adding more hooks and things).
James
-
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/