Re: [patch] NUMAQ subarchification
Martin J. Bligh (mbligh@aracnet.com)
Fri, 14 Mar 2003 18:05:51 -0800
>>> 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.
-
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/