ARM: v6k: select TLS register code according to V6 variants
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Jan 2011 16:38:56 +0000 (16:38 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Feb 2011 21:23:29 +0000 (21:23 +0000)
commit37bc618fe2689a7f8de8fac82e72b00ecea4d43d
tree22069ac77f14028b237703936385060c09b655f5
parenta41297a0ffb43fda0a565bdd3ee405d16505820c
ARM: v6k: select TLS register code according to V6 variants

If CONFIG_CPU_V6 is enabled, we may or may not have the TLS register.
Use the conditional code which copes with this variability.  Otherwise,
if CONFIG_CPU_32v6K is set, we know we have the TLS register on all
supported CPUs, so use it unconditionally.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/tls.h