From 58171bf2af6b547a560b304f6ab2b9edf1c31d5a Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 4 Jul 2014 16:41:21 +0100 Subject: [PATCH] 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 Acked-by: Catalin Marinas Signed-off-by: Russell King --- Reading git-format-patch failed