mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 20:05:39 +00:00
[PATCH] Fix for trivial fix for 2.6.11 raid6 compilation on ppc w/ Altivec
Here's a patch that will work for both PPC and PPC64. The proper way to fix this in mainline is to merge -mm's cpu_has_feature patch, but for the stable 2.6.11-series, this much less intrusive (i.e. just the pure bugfix, not the cleanup part). Signed-off-by: Olof Johansson <olof@austin.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2685ac3d74
commit
807235e730
1 changed files with 4 additions and 0 deletions
|
@ -108,7 +108,11 @@ int raid6_have_altivec(void);
|
|||
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
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue