arm: Replace CONFIG_HAS_TLS_REG with HWCAP_TLS and check for it on V6
authorTony Lindgren <tony@atomide.com>
Mon, 5 Jul 2010 14:05:03 +0000 (17:05 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 5 Jul 2010 14:05:03 +0000 (17:05 +0300)
The TLS register is only available on ARM1136 r1p0 and later.
Set HWCAP_TLS flags if hardware TLS is available and test for
it if CONFIG_CPU_32v6K is not set for V6.

Note that we set the TLS instruction in __kuser_get_tls
dynamically as suggested by Jamie Lokier <jamie@shareable.org>.

Also the __switch_to code is optimized out in most cases as
suggested by Nicolas Pitre <nico@fluxnic.net>.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Nicolas Pitre <nicolas.pitre@linaro.org>

No differences found