patch-2.4.23 linux-2.4.23/arch/x86_64/kernel/pci-x86_64.c
Next file: linux-2.4.23/arch/x86_64/kernel/pci-x86_64.h
Previous file: linux-2.4.23/arch/x86_64/kernel/pci-pc.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
2003-11-28 10:26:19.000000000 -0800
-  Orig file: 
linux-2.4.22/arch/x86_64/kernel/pci-x86_64.c
-  Orig date: 
2003-06-13 07:51:32.000000000 -0700
diff -urN linux-2.4.22/arch/x86_64/kernel/pci-x86_64.c linux-2.4.23/arch/x86_64/kernel/pci-x86_64.c
@@ -294,6 +294,17 @@
 	}
 }
 
+void __init pcibios_set_cacheline_size(void)
+{
+	struct cpuinfo_x86 *c = &boot_cpu_data;
+
+	pci_cache_line_size = 32 >> 2;
+	if (c->x86 >= 6 && c->x86_vendor == X86_VENDOR_AMD)
+		pci_cache_line_size = 64 >> 2;	/* K7 & K8 */
+	else if (c->x86 > 6 && c->x86_vendor == X86_VENDOR_INTEL)
+		pci_cache_line_size = 128 >> 2;	/* P4 */
+}
+
 void __init pcibios_resource_survey(void)
 {
 	DBG("PCI: Allocating resources\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)