projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
174dfb1
)
arm64: neon: Export kernel_neon_busy to loadable modules
author
Catalin Marinas
<catalin.marinas@arm.com>
Mon, 7 Aug 2017 11:36:35 +0000
(12:36 +0100)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Mon, 7 Aug 2017 11:36:35 +0000
(12:36 +0100)
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>
arch/arm64/kernel/fpsimd.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/fpsimd.c
b/arch/arm64/kernel/fpsimd.c
index
138fcfa
..
9da4e63
100644
(file)
--- 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