Commit e3667ee4 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/process: Remove useless #ifdef CONFIG_ALTIVEC

cpu_has_feature(CPU_FTR_ALTIVEC) returns false when CONFIG_ALTIVEC is
not set.

There is no need to enclose the test in an #ifdef CONFIG_ALTIVEC.
Remove it.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/03ba6b52344ca7c336df2bc6e3d31d736c804ae2.1597643221.git.christophe.leroy@csgroup.eu
parent 80739c2b
...@@ -409,10 +409,8 @@ static int __init init_msr_all_available(void) ...@@ -409,10 +409,8 @@ static int __init init_msr_all_available(void)
#ifdef CONFIG_PPC_FPU #ifdef CONFIG_PPC_FPU
msr_all_available |= MSR_FP; msr_all_available |= MSR_FP;
#endif #endif
#ifdef CONFIG_ALTIVEC
if (cpu_has_feature(CPU_FTR_ALTIVEC)) if (cpu_has_feature(CPU_FTR_ALTIVEC))
msr_all_available |= MSR_VEC; msr_all_available |= MSR_VEC;
#endif
if (cpu_has_feature(CPU_FTR_VSX)) if (cpu_has_feature(CPU_FTR_VSX))
msr_all_available |= MSR_VSX; msr_all_available |= MSR_VSX;
#ifdef CONFIG_SPE #ifdef CONFIG_SPE
...@@ -446,10 +444,8 @@ void giveup_all(struct task_struct *tsk) ...@@ -446,10 +444,8 @@ void giveup_all(struct task_struct *tsk)
if (usermsr & MSR_FP) if (usermsr & MSR_FP)
__giveup_fpu(tsk); __giveup_fpu(tsk);
#endif #endif
#ifdef CONFIG_ALTIVEC
if (usermsr & MSR_VEC) if (usermsr & MSR_VEC)
__giveup_altivec(tsk); __giveup_altivec(tsk);
#endif
#ifdef CONFIG_SPE #ifdef CONFIG_SPE
if (usermsr & MSR_SPE) if (usermsr & MSR_SPE)
__giveup_spe(tsk); __giveup_spe(tsk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment