arm64: add C wrappers for SET_PSTATE_*()
authorMark Rutland <mark.rutland@arm.com>
Fri, 13 Nov 2020 12:49:22 +0000 (12:49 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 2 Dec 2020 19:44:02 +0000 (19:44 +0000)
commit515d5c8a1374b307225e41b3e66b0aad08585f53
tree152752dafb390715e775ce93e1e3ce5ccf2f7e41
parentf80d034086d5bfcfd3bf4ab6f52b2df78c3ad2fa
arm64: add C wrappers for SET_PSTATE_*()

To make callsites easier to read, add trivial C wrappers for the
SET_PSTATE_*() helpers, and convert trivial uses over to these. The new
wrappers will be used further in subsequent patches.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20201113124937.20574-3-mark.rutland@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/proton-pack.c