]> Gentwo Git Trees - linux/.git/commit
arm64/efi: Drop efi_rt_lock spinlock from EFI arch wrapper
authorArd Biesheuvel <ardb@kernel.org>
Wed, 15 Oct 2025 20:56:40 +0000 (22:56 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Nov 2025 18:59:22 +0000 (18:59 +0000)
commit1068cb52e8ef4e21a31095dc932685a543b779bc
tree570c5570bcf66f85d248723de8ec62c91bbc80e5
parent7137a203b2515bdbeae1cf13446bdce17db2c2f7
arm64/efi: Drop efi_rt_lock spinlock from EFI arch wrapper

Since commit

  5894cf571e14 ("acpi/prmt: Use EFI runtime sandbox to invoke PRM handlers")

all EFI runtime calls on arm64 are routed via the EFI runtime wrappers,
which are serialized using the efi_runtime_lock semaphore.

This means the efi_rt_lock spinlock in the arm64 arch wrapper code has
become redundant, and can be dropped. For robustness, replace it with an
assert that the EFI runtime lock is in fact held by 'current'.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/efi.c