Re: [patch] NUMAQ subarchification

Martin J. Bligh
2003-03-15T02:06:02Z

>>> This patch adds a new file, arch/i386/kernel/summit.c, for
>>> summit-specific code. Adds some structures to mach_mpparse.h. Also
>>> adds a hook in setup_arch() to dig out the PCI info, and stores it in
>>> the mp_bus_id_to_node[] array, where it can be read by the topology
>>> functions.
>>
>> Wouldn't this file be better in arch/i386/mach-summit in keeping with
>> all the other subarch stuff?
>>
>> While you're creating a separate file for summit, could you move the
>> summit specific variables (mpparse.c:x86_summit is the only one, I
>> think) into it so we can clean all the summit references out of the main
>> line?
>>
>> Thanks,
>>
>> James
>
> While I was at it, I subarchified (I'll cc Websters with the new word ;) numaq as well. Copied mach-defaults setup.c, topology.c, and Makefile. Moved arch/i386/kernel/numaq.c into mach-numaq. Compiles.

No, *please* don't do this. Subarch for .c files is *broken*.

Last time I looked (and I don't think anyone has fixed it since)
it requires copying files all over the place, making an unmaintainable
nightmare. Either subarch needs fixing first, or we don't use it.

Let's just stick with your original patch - it's fine.

M.