Cc: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>, linux-kernel@vger.kernel.org <linux-kernel@...>
Hi Yinghai Lu.
Some random comments after skimming through the diff.
In general I like the simplification moving numaq.
But there is too much ifdef going on - and it
can be done better.
Part of this may belong in a followup patch - other parts
should be addressed in this patch.
I counted several places where you test for the above.
Introducing a CONFIG_X86_NUMAQ_OR_GENERIC would simplify stuff.
Can we move these dependencies to Kconfig?
It should looks roughtly like this in the Makefile:
obj-$(CONFIG_X86_NUMAQ) += numaq_32.o
obj-$(CONFIG_X86_NUMA_OR_GENERIC) += numaq_32.o
This ifdef should be found in a .h file defining a simple inline.
Then you could just do:
if (found_numaq())
return;
static? and introduce helper functions with proper
prototypes in a .h file?
No reason to use ifdef araound a extern.
Use:
pci-$(CONFIG_X86_NUMAQ) := numa.o irq.o
pci-$(CONFIG_X86_GENERICARCH) += numa.o
Move extern to .h file and consider introducing a helper function.
Move ifdef to .h files.
If at all needed.
Create a dummy inline in a .h file for this function
so we can drop the ifdef here.
Sam
--