Re: RFC [PATCH] x86: make generic arch support NUMAQ

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yinghai Lu <yhlu.kernel@...>
Cc: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>, linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Thursday, June 5, 2008 - 7:00 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC [PATCH] x86: make generic arch support NUMAQ, Yinghai Lu, (Thu Jun 5, 6:09 am)
[patch 08/19] slub/slabinfo: add defrag statistics, Christoph Lameter, (Fri May 9, 10:21 pm)
[PATCH] x86: make generic arch support NUMAQ v2, Yinghai Lu, (Thu Jun 5, 8:14 pm)
[PATCH] x86: make generic arch support NUMAQ v3, Yinghai Lu, (Fri Jun 6, 5:41 pm)
[PATCH] x86: make generic arch support NUMAQ v4, Yinghai Lu, (Sat Jun 7, 3:31 am)
[PATCH] x86: make generic arch support NUMAQ v5, Yinghai Lu, (Sun Jun 8, 9:31 pm)
Re: [PATCH] x86: make generic arch support NUMAQ v5, Ingo Molnar, (Tue Jun 10, 5:55 am)
[PATCH] x86: make generic arch support NUMAQ - fix, Yinghai Lu, (Mon Jun 9, 8:00 pm)
Re: [PATCH] x86: make generic arch support NUMAQ v5, Andy Whitcroft, (Mon Jun 9, 10:41 am)
Re: [PATCH] x86: make generic arch support NUMAQ v5, Yinghai Lu, (Mon Jun 9, 2:00 pm)
Re: [PATCH] x86: make generic arch support NUMAQ v2, Yinghai Lu, (Thu Jun 5, 8:54 pm)
Re: [PATCH] x86: make generic arch support NUMAQ v2, Sam Ravnborg, (Fri Jun 6, 2:17 am)
Re: [PATCH] x86: make generic arch support NUMAQ v2, Yinghai Lu, (Fri Jun 6, 2:27 am)
Re: [PATCH] x86: make generic arch support NUMAQ v2, Ingo Molnar, (Fri Jun 6, 10:09 am)
Re: [PATCH] x86: make generic arch support NUMAQ v2, Yinghai Lu, (Fri Jun 6, 2:05 pm)
Re: RFC [PATCH] x86: make generic arch support NUMAQ, Sam Ravnborg, (Thu Jun 5, 7:00 am)
Re: RFC [PATCH] x86: make generic arch support NUMAQ, Ingo Molnar, (Thu Jun 5, 8:39 am)