On Sun, 2010-03-21 at 20:56 -0700, Yinghai Lu wrote: > On 03/21/2010 07:37 PM, Benjamin Herrenschmidt wrote: > > On Sun, 2010-03-21 at 00:13 -0700, Yinghai Lu wrote: > >> move it to kernel/fw_memmap.c from arch/x86/kernel/e820.c > >> > >> -v2: add fw_memmap wrapper to some func... > >> move some functions back to e820.c > > > > NAK > at this point, kernel/early_res.c and kernel/fw_memmap.c is protected with HAVE_EARLY_RES > > obj-$(CONFIG_HAVE_EARLY_RES) += early_res.o fw_memmap.o > > so it will not increase size that doesn't support early_res/bootmem yet. I'm still not at all happy with it. It's not only about increasing the size of the kernel. It's about moving some x86 specific stuff and more or less arbitrarily deciding that everybody has to convert to that model now, despite the fact that more suited alternatives have existed for years, rather than thinking about doing the logical thing, which is to convert x86 over to lmb, eventually adding the missing functionalities in lmb if need be. Also, there's something just plain gross about the choice of names. fw_memmap is something I wouldn't wish my enemies to have to type on a keyboard, it looks ugly, and it lends to way too long function names. In addition to the fact that your "generic" facility is still all cluttered with the e820 names and other very x86 centric definitions. It -may- well be that adapting x86 to lmb isn't a practical approach, but if that was the case, then please justify why with precise technical reasons, which we can discuss then in details and make a decision based on that. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html