[RESEND v4 PATCH 2/2] [PowerPC] Allow use of SIMD in interrupts from kernel code

2019-05-18 Thread Shawn Landden
This even allows simd in preemptible kernel code, as does x86, although this is rarely safe (could be used with kthread_create_on_cpu). All callers are disabling preemption. v4: fix build without CONFIG_AVX change commit message Signed-off-by: Shawn Landden --- arch/powerpc/include/asm/switc

[v4 PATCH 2/2] [PowerPC] Allow use of SIMD in interrupts from kernel code

2019-05-14 Thread Shawn Landden
This second patch is separate because it could be wrong, like I am not sure about how kernel thread migration works, and it is even allowing simd in preemptible kernel code. v4: fix build without CONFIG_AVX Signed-off-by: Shawn Landden --- arch/powerpc/include/asm/switch_to.h | 15 +--- arch/p

[PATCH 2/2] [PowerPC] Allow use of SIMD in interrupts from kernel code

2019-05-13 Thread Shawn Landden
This second patch is separate because it could be wrong, like I am not sure about how kernel thread migration works, and it is even allowing simd in preemptible kernel code. Signed-off-by: Shawn Landden --- arch/powerpc/include/asm/simd.h | 8 + arch/powerpc/include/asm/switch_to.h | 1