]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: elf: add new hwcap for identifying atomic ldrd/strd instructions
authorWill Deacon <will.deacon@arm.com>
Mon, 8 Apr 2013 16:13:12 +0000 (17:13 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 May 2013 15:02:34 +0000 (16:02 +0100)
commite04ad385b6f10adc995ad444409d84e70a8bb2ba
tree45b8497556dff1a90311bbd087f34ff4791be9d6
parent45bea72f2b34f7ce95a025f4753365fe3c119eaf
ARM: elf: add new hwcap for identifying atomic ldrd/strd instructions

CPUs implementing LPAE have atomic ldrd/strd instructions, meaning that
userspace software can avoid having to use the exclusive variants of
these instructions if they wish.

This patch advertises the atomicity of these instructions via the
hwcaps, so userspace can detect this CPU feature.

Reported-by: Vladimir Danushevsky <vladimir.danushevsky@oracle.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/uapi/asm/hwcap.h
arch/arm/kernel/setup.c