patch-2.4.0-test2 linux/drivers/block/xor.c

Next file: linux/drivers/block/z2ram.c
Previous file: linux/drivers/block/xd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/block/xor.c linux/drivers/block/xor.c
@@ -1814,7 +1814,7 @@
 			fastest = f;
 	}
 #ifdef CONFIG_X86_XMM 
-	if (boot_cpu_data.mmu_cr4_features & X86_CR4_OSXMMEXCPT) {
+	if (cpu_has_xmm) {
 		fastest = &t_xor_block_pIII_kni;
 	}
 #endif
@@ -1849,7 +1849,7 @@
 #endif
 
 #ifdef CONFIG_X86_XMM 
-	if (boot_cpu_data.mmu_cr4_features & X86_CR4_OSXMMEXCPT) {
+	if (cpu_has_xmm) {
 		printk(KERN_INFO
 			"raid5: KNI detected, trying cache-avoiding KNI checksum routine\n");
 		/* we force the use of the KNI xor block because it
@@ -1892,4 +1892,3 @@
 #endif /* __sparc_v9__ */
 
 MD_EXPORT_SYMBOL(xor_block);
-

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)