arm64: update 32-bit kuser helpers to ARMv8
authorRobin Murphy <Robin.Murphy@arm.com>
Mon, 7 Oct 2013 17:30:34 +0000 (18:30 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 19:00:55 +0000 (20:00 +0100)
commitb357e64d1fb045568adeacc7e504788401d9db9b
tree7b7ba8df35ab4b24597b8de95b82ec7b97b307d9
parent9109f9215e9e238f0ba4d34b048f0d729a954460
arm64: update 32-bit kuser helpers to ARMv8

This patch updates the barrier semantics in the kuser helper functions
to take advantage of the ARMv8 additions to AArch32, which are
guaranteed to be available in situations where these functions will be
called.

Note that this slightly changes the cmpxchg functions in that they are
no longer necessarily full barriers if they return 1. However, the
documentation only states they include their own barriers "as needed",
not that they are obligated to act as a full barrier for the caller.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
CC: Matthew Leach <matthew.leach@arm.com>
CC: Dave Martin <dave.martin@arm.com>
CC: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit d0f38f9130b7683e39611c5a661349e301ee43c8)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/kuser32.S