Thread (126 messages) 126 messages, 10 authors, 2011-02-18
STALE5580d

[PATCH 10/14] ARM: v6k: select TLS register code according to V6 variants

From: nico@fluxnic.net (Nicolas Pitre)
Date: 2011-01-18 04:25:46
Also in: linux-omap

On Mon, 17 Jan 2011, Russell King - ARM Linux wrote:
On Mon, Jan 17, 2011 at 05:23:43PM -0500, Nicolas Pitre wrote:
quoted
Note: this is becoming a bit confusing and prone to mistake when we have:
Agreed.
quoted
	CONFIG_CPU_V6
	CONFIG_CPU_V6K
	CONFIG_CPU_32v6
	CONFIG_CPU_32v6K
It may be better at some point to get rid of the CPU_32v* and replace
them with CPU_ARCH_V* instead, which makes it clear that these ones
definitely refer to the architecture versions.
Agreed.
The last point while we're here is I don't think it helps to have the
conditionals spread between the Kconfig files and this file - I'd much
rather see them all in Kconfig so we can see exactly how we end up with
each option (TLS_EMUL, TLS_V6, TLS_V6K) in one place.
Yep, although I'd suggest a naming based on the implementation and not 
on the CPU level it happens to be used on.  Something like TLS_EMUL, 
TLS_HW_REG, TLS_HIVECT, where (TLS_HW_REG && TLS_HIVECT) would 
correspond to the current 'if defined(CONFIG_CPU_V6)' case.  That would 
allow for an eventual combination of CONFIG_CPU_32v5 and 
CONFIG_CPU_32v6 (that would be Kirkwood + Dove).


Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help