Skip to content

Commit 1d038e8

Browse files
ardbiesheuvelctmarinas
authored andcommitted
arm64/fpsimd: Don't warn when EFI execution context is preemptible
Kernel mode FP/SIMD no longer requires preemption to be disabled, so only warn on uses of FP/SIMD from preemptible context if the fallback path is taken for cases where kernel mode NEON would not be allowed otherwise. 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>
1 parent a286050 commit 1d038e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/arm64/kernel/fpsimd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,11 +1934,11 @@ void __efi_fpsimd_begin(void)
19341934
if (!system_supports_fpsimd())
19351935
return;
19361936

1937-
WARN_ON(preemptible());
1938-
19391937
if (may_use_simd()) {
19401938
kernel_neon_begin();
19411939
} else {
1940+
WARN_ON(preemptible());
1941+
19421942
/*
19431943
* If !efi_sve_state, SVE can't be in use yet and doesn't need
19441944
* preserving:

0 commit comments

Comments
 (0)