Skip to content
Commit 0899a627 authored by Gavin Shan's avatar Gavin Shan Committed by Catalin Marinas
Browse files

arm64: Remove system_uses_lse_atomics()



There are two variants of system_uses_lse_atomics(), depending on
CONFIG_ARM64_LSE_ATOMICS. The function isn't called anywhere when
CONFIG_ARM64_LSE_ATOMICS is disabled. It can be directly replaced
by alternative_has_cap_likely(ARM64_HAS_LSE_ATOMICS) when the kernel
option is enabled.

No need to keep system_uses_lse_atomics() and just remove it.

Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20231017005036.334067-1-gshan@redhat.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent dba2ff49
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment