diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2017-08-07 13:36:35 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-08-07 13:36:35 +0200 |
commit | 11cefd5ac25f242349994140a3bce3a20db0c751 (patch) | |
tree | 6157945ff39c363906013d3d9904e1423617aed6 /arch/arm64/kernel/fpsimd.c | |
parent | arm64: neon: Temporarily add a kernel_mode_begin_partial() definition (diff) | |
download | linux-11cefd5ac25f242349994140a3bce3a20db0c751.tar.xz linux-11cefd5ac25f242349994140a3bce3a20db0c751.zip |
arm64: neon: Export kernel_neon_busy to loadable modules
may_use_simd() can be invoked from loadable modules and it accesses
kernel_neon_busy. Make sure that the latter is exported.
Fixes: cb84d11e1625 ("arm64: neon: Remove support for nested or hardirq kernel-mode NEON")
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/fpsimd.c')
-rw-r--r-- | arch/arm64/kernel/fpsimd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 138fcfaeadc1..9da4e636b328 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -255,6 +255,7 @@ void fpsimd_flush_task_state(struct task_struct *t) #ifdef CONFIG_KERNEL_MODE_NEON DEFINE_PER_CPU(bool, kernel_neon_busy); +EXPORT_PER_CPU_SYMBOL(kernel_neon_busy); /* * Kernel-side NEON support functions |