]> git.hungrycats.org Git - linux/commitdiff
[PATCH] trivial fix for 2.6.11 raid6 compilation on ppc w/ Altivec
authorrene@exactcode.de <rene@exactcode.de>
Thu, 3 Mar 2005 02:58:16 +0000 (18:58 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Mar 2005 02:58:16 +0000 (18:58 -0800)
From: Rene Rebe <rene@exactcode.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid6altivec.uc

index e21197a363c3cbea9134c63ebdec55ae7697b307..3c1fd5425650e4f3711009e1134817bb35122d44 100644 (file)
@@ -108,7 +108,7 @@ int raid6_have_altivec(void);
 int raid6_have_altivec(void)
 {
        /* This assumes either all CPUs have Altivec or none does */
-       return cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC;
+       return cur_cpu_spec[0]->cpu_features & CPU_FTR_ALTIVEC;
 }
 #endif