From: Tony Lindgren Date: Fri, 2 Jul 2010 08:33:31 +0000 (+0300) Subject: arm: Replace CONFIG_HAS_TLS_REG with HWCAP_TLS and check for it on V6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4481d0c7d25c9de9a3986c8b4c52389ca8bbf929;p=pandora-kernel.git arm: Replace CONFIG_HAS_TLS_REG with HWCAP_TLS and check for it on V6 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 . Also the __switch_to code is optimized out in most cases as suggested by Nicolas Pitre . Signed-off-by: Tony Lindgren Reviewed-by: Nicolas Pitre --- Reading git-diff-tree failed