Re: [PATCH] powerpc: Allow may_use_simd() to function as feature detection

2019-05-14 Thread Shawn Landden
Wireguard is not in the kernel (yet) and uses these symbols. (It is IS_ENABLED so doesn't need it, but I think it is reasonable) I think these enable/disable symbols should not be marked GPL-only. El mar., 14 may. 2019 13:06, Segher Boessenkool escribió: > On Tue, May 14, 2019 at 09:49:18AM -030

Re: [PATCH] powerpc: Allow may_use_simd() to function as feature detection

2019-05-14 Thread Segher Boessenkool
On Tue, May 14, 2019 at 09:49:18AM -0300, Shawn Landden wrote: > ARM does this, so we might as well too. > I am a bit confused however as CONFIG_ALTIVEC does not select > CONFIG_PPC_FPU. Would you ever have altivec without a fpu? There is no hardware like that, none supported anyway. It does not

[PATCH] powerpc: Allow may_use_simd() to function as feature detection

2019-05-14 Thread Shawn Landden
ARM does this, so we might as well too. I am a bit confused however as CONFIG_ALTIVEC does not select CONFIG_PPC_FPU. Would you ever have altivec without a fpu? Signed-off-by: Shawn Landden --- arch/powerpc/include/asm/simd.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerp