diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-04 16:41:21 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-18 12:29:51 +0100 |
commit | 58171bf2af6b547a560b304f6ab2b9edf1c31d5a (patch) | |
tree | 271e1bb563a414fc3a64b29c55ef0283a0eff14f /arch/arm/mm/Kconfig | |
parent | 7397aa48fff47c2386867a3fbfce8f3e664843a9 (diff) | |
download | linux-58171bf2af6b547a560b304f6ab2b9edf1c31d5a.tar.bz2 |
ARM: hwcap: disable HWCAP_SWP if the CPU advertises it has exclusives
When the CPU has support for the byte and word exclusive operations,
userspace should use them in preference to the SWP instructions.
Detect the presence of these instructions by reading the ISAR CPU ID
registers and adjust the ELF HWCAP mask appropriately.
Note that ARM1136 < r1p0 has no ISAR4, so this is explicitly detected
and the test disabled, leaving the current situation where HWCAP_SWP
is set.
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/Kconfig')
0 files changed, 0 insertions, 0 deletions