Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Leonidas Da Silva Barbosa and committed by
Herbert Xu
72cd7b44 1f644a7c

+1 -3
+1
arch/powerpc/include/asm/switch_to.h
··· 29 29 30 30 extern void enable_kernel_fp(void); 31 31 extern void enable_kernel_altivec(void); 32 + extern void enable_kernel_vsx(void); 32 33 extern int emulate_altivec(struct pt_regs *); 33 34 extern void __giveup_vsx(struct task_struct *); 34 35 extern void giveup_vsx(struct task_struct *);
-3
arch/powerpc/kernel/process.c
··· 204 204 #endif /* CONFIG_ALTIVEC */ 205 205 206 206 #ifdef CONFIG_VSX 207 - #if 0 208 - /* not currently used, but some crazy RAID module might want to later */ 209 207 void enable_kernel_vsx(void) 210 208 { 211 209 WARN_ON(preemptible()); ··· 218 220 #endif /* CONFIG_SMP */ 219 221 } 220 222 EXPORT_SYMBOL(enable_kernel_vsx); 221 - #endif 222 223 223 224 void giveup_vsx(struct task_struct *tsk) 224 225 {