[PATCH V2 5/8] powerpc: Restore FPU/VEC/VSX if previously used

2016-01-14 Thread Cyril Bur
Currently the FPU, VEC and VSX facilities are lazily loaded. This is not a problem unless a process is using these facilities. Modern versions of GCC are very good at automatically vectorising code, new and modernised workloads make use of floating point and vector facilities, even the kernel make

Re: [PATCH V2 5/8] powerpc: Restore FPU/VEC/VSX if previously used

2016-01-14 Thread Michael Neuling
> Currently the FPU, VEC and VSX facilities are lazily loaded. This is not a > problem unless a process is using these facilities. > Modern versions of GCC are very good at automatically vectorising code, new > and modernised workloads make use of floating point and vector facilities, > even the k

Re: [PATCH V2 5/8] powerpc: Restore FPU/VEC/VSX if previously used

2016-01-17 Thread Cyril Bur
On Fri, 15 Jan 2016 17:02:41 +1100 Michael Neuling wrote: Hey Mikey, Thanks for the review, as always you're correct :). > > Can you make the inline code easier to read? Something like > > #ifdef CONFIG_ALTIVEC > #define loadvec(thr) ((thr).load_vec) > #else > #define loadvec(thr) 0 > #endif