diff options
author | Leonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com> | 2015-07-13 12:51:01 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-07-14 02:56:48 -0400 |
commit | 72cd7b44bc99376b3f3c93cedcd052663fcdf705 (patch) | |
tree | 9d144c26a0ca726f103f00cf5f3d3c46183d094a /arch/powerpc/kernel/process.c | |
parent | 1f644a7c7cd6a2c310312936d51cb56e6ac56f10 (diff) |
powerpc: Uncomment and make enable_kernel_vsx() routine available
enable_kernel_vsx() function was commented since anything was using
it. However, vmx-crypto driver uses VSX instructions which are
only available if VSX is enable. Otherwise it rises an exception oops.
This patch uncomment enable_kernel_vsx() routine and makes it available.
Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 8005e18d1b40..64e6e9d9e656 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -204,8 +204,6 @@ EXPORT_SYMBOL_GPL(flush_altivec_to_thread); | |||
204 | #endif /* CONFIG_ALTIVEC */ | 204 | #endif /* CONFIG_ALTIVEC */ |
205 | 205 | ||
206 | #ifdef CONFIG_VSX | 206 | #ifdef CONFIG_VSX |
207 | #if 0 | ||
208 | /* not currently used, but some crazy RAID module might want to later */ | ||
209 | void enable_kernel_vsx(void) | 207 | void enable_kernel_vsx(void) |
210 | { | 208 | { |
211 | WARN_ON(preemptible()); | 209 | WARN_ON(preemptible()); |
@@ -220,7 +218,6 @@ void enable_kernel_vsx(void) | |||
220 | #endif /* CONFIG_SMP */ | 218 | #endif /* CONFIG_SMP */ |
221 | } | 219 | } |
222 | EXPORT_SYMBOL(enable_kernel_vsx); | 220 | EXPORT_SYMBOL(enable_kernel_vsx); |
223 | #endif | ||
224 | 221 | ||
225 | void giveup_vsx(struct task_struct *tsk) | 222 | void giveup_vsx(struct task_struct *tsk) |
226 | { | 223 | { |