arm64: atomics: lse: remove stale dependency on JUMP_LABEL
authorMark Rutland <mark.rutland@arm.com>
Mon, 14 Nov 2022 12:54:24 +0000 (12:54 +0000)
committerWill Deacon <will@kernel.org>
Mon, 14 Nov 2022 14:44:14 +0000 (14:44 +0000)
commit657eef0a5420a02c02945ed8c87f2ddcbd255772
tree0a5cdb9e677918babc3865a61b6730f8fbf08497
parent1e55b44d9ecd42dee7106ce635ffd855183f5221
arm64: atomics: lse: remove stale dependency on JUMP_LABEL

Currently CONFIG_ARM64_USE_LSE_ATOMICS depends upon CONFIG_JUMP_LABEL,
as the inline atomics were indirected with a static branch.

However, since commit:

  21fb26bfb01ffe0d ("arm64: alternatives: add alternative_has_feature_*()")

... we use an alternative_branch (which is always available) rather than
a static branch, and hence the dependency is unnecessary.

Remove the stale dependency, along with the stale include. This will
allow the use of LSE atomics in kernels built with CONFIG_JUMP_LABEL=n,
and reduces the risk of circular header dependencies via <asm/lse.h>.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20221114125424.2998268-1-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig
arch/arm64/include/asm/lse.h