int raid6_have_altivec(void)
{
/* This assumes either all CPUs have Altivec or none does */
-#ifdef CONFIG_PPC64
- return cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC;
-#else
- return cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC;
-#endif
+ return cpu_has_feature(CPU_FTR_ALTIVEC);
}
#endif