diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2017-08-07 07:36:35 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-08-07 07:36:35 -0400 |
commit | 11cefd5ac25f242349994140a3bce3a20db0c751 (patch) | |
tree | 6157945ff39c363906013d3d9904e1423617aed6 | |
parent | 174dfb12860eac361f3ced9fefb51393fec5bd32 (diff) |
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>
-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) | |||
255 | #ifdef CONFIG_KERNEL_MODE_NEON | 255 | #ifdef CONFIG_KERNEL_MODE_NEON |
256 | 256 | ||
257 | DEFINE_PER_CPU(bool, kernel_neon_busy); | 257 | DEFINE_PER_CPU(bool, kernel_neon_busy); |
258 | EXPORT_PER_CPU_SYMBOL(kernel_neon_busy); | ||
258 | 259 | ||
259 | /* | 260 | /* |
260 | * Kernel-side NEON support functions | 261 | * Kernel-side NEON support functions |