From: Tony Lindgren Date: Mon, 2 Aug 2010 10:18:40 +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=7d5ee5a8d80a980f88ab0f374e0645d45105482c;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