arm64: elf: advertise 8.1 atomic instructions as new hwcap
authorWill Deacon <will.deacon@arm.com>
Mon, 26 Jan 2015 18:46:19 +0000 (18:46 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 13:34:39 +0000 (14:34 +0100)
commit40a1db2434a1b62332b1af25cfa14d7b8c0301fe
treeb98eadfd8f2e2e98b162a7b0a52635ed9c6d7ee4
parentc275f76bb4ce16fd0205da1e15f31b875013678e
arm64: elf: advertise 8.1 atomic instructions as new hwcap

The ARM v8.1 architecture introduces new atomic instructions to the A64
instruction set for things like cmpxchg, so advertise their availability
to userspace using a hwcap.

Reviewed-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/uapi/asm/hwcap.h
arch/arm64/kernel/setup.c