arm64: atomics: lse: remove stale dependency on JUMP_LABEL
Mark Rutland
reviewerPATCH 1/1 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>.
--- arch/arm64/Kconfig | 1 - arch/arm64/include/asm/lse.h | 1 - 2 files changed, 2 deletions(-)
arch/arm64/Kconfig +0 -1
@@ -1714,7 +1714,6 @@ config ARM64_LSE_ATOMICS config ARM64_USE_LSE_ATOMICS bool "Atomic instructions" - depends on JUMP_LABEL default y help As part of the Large System Extensions, ARMv8.1 introduces new
arch/arm64/include/asm/lse.h +0 -1
@@ -10,7 +10,6 @@#include <linux/compiler_types.h> #include <linux/export.h> -#include <linux/jump_label.h> #include <linux/stringify.h> #include <asm/alternative.h> #include <asm/alternative-macros.h>
Signature · 7 lines
2.30.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 8 lines · Mark Rutland
Currently
CONFIG_ARM64_USE_LSE_ATOMICSdepends uponCONFIG_JUMP_LABEL, as the inline atomics were indirected with a static branch.However, since commit:
21fb26bfb01ffe0d("arm64: alternatives: add alternative_has_feature_*()")[...]
Applied to arm64 (for-next/trivial), thanks!
[1/1] arm64: atomics: lse: remove stale dependency on JUMP_LABEL
https://git.kernel.org/arm64/c/657eef0a5420
Cheers,
Signature · 10 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/1 arm64: atomics: lse: remove stale dependency on JUMP_LABEL
In reply to Mark RutlandHello,
Since all dependencies for this patch are available in 6.1 can it be backported to the 6.1 LTS?
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel