patch-2.4.23 linux-2.4.23/arch/i386/kernel/pci-i386.c
Next file: linux-2.4.23/arch/i386/kernel/pci-i386.h
Previous file: linux-2.4.23/arch/i386/kernel/mpparse.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/i386/kernel/pci-i386.c
- Orig date:
2002-11-28 15:53:09.000000000 -0800
diff -urN linux-2.4.22/arch/i386/kernel/pci-i386.c linux-2.4.23/arch/i386/kernel/pci-i386.c
@@ -295,6 +295,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)