|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 12/20] x86/PCI: Clean up pci_cache_line_size
From: Alex Nixon <alex.nixon@xxxxxxxxxx>
Separate out x86 cache_line_size initialisation code into its own
function (so it can be shared by Xen later in this patch series)
[ Impact: cleanup ]
Signed-off-by: Alex Nixon <alex.nixon@xxxxxxxxxx>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Reviewed-by: "H. Peter Anvin" <hpa@xxxxxxxxx>
Reviewed-by: Matthew Wilcox <willy@xxxxxxxxxxxxxxx>
Reviewed-by: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>
Cc: x86@xxxxxxxxxx
---
arch/x86/include/asm/pci_x86.h | 1 +
arch/x86/pci/common.c | 17 ++++++++++-------
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/arch/x86/include/asm/pci_x86.h b/arch/x86/include/asm/pci_x86.h
index cd2a31d..69abe01 100644
--- a/arch/x86/include/asm/pci_x86.h
+++ b/arch/x86/include/asm/pci_x86.h
@@ -46,6 +46,7 @@ enum pci_bf_sort_state {
extern unsigned int pcibios_max_latency;
void pcibios_resource_survey(void);
+void pcibios_set_cache_line_size(void);
/* pci-pc.c */
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 215a27a..d4214ac 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -404,16 +404,10 @@ struct pci_bus * __devinit pcibios_scan_root(int busnum)
return bus;
}
-
-int __init pcibios_init(void)
+void __init pcibios_set_cache_line_size(void)
{
struct cpuinfo_x86 *c = &boot_cpu_data;
- if (!raw_pci_ops) {
- printk(KERN_WARNING "PCI: System does not support PCI\n");
- return 0;
- }
-
/*
* Set PCI cacheline size to that of the CPU if the CPU has reported it.
* (For older CPUs that don't support cpuid, we se it to 32 bytes
@@ -428,7 +422,16 @@ int __init pcibios_init(void)
pci_dfl_cache_line_size = 32 >> 2;
printk(KERN_DEBUG "PCI: Unknown cacheline size. Setting to 32
bytes\n");
}
+}
+
+int __init pcibios_init(void)
+{
+ if (!raw_pci_ops) {
+ printk(KERN_WARNING "PCI: System does not support PCI\n");
+ return 0;
+ }
+ pcibios_set_cache_line_size();
pcibios_resource_survey();
if (pci_bf_sort >= pci_force_bf)
--
1.7.0.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [RFC PATCH] Xen PCI frontend driver (v0.5), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 07/20] xen: set pirq name to something useful., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/20] xen: statically initialize cpu_evtchn_mask_p, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 06/20] xen: dynamically allocate irq & event structures, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 14/20] x86/PCI: Export pci_walk_bus function., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 02/20] xen: define BIOVEC_PHYS_MERGEABLE(), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 19/20] xenbus: prevent warnings on unhandled enumeration values, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 11/20] xen: fix shared irq device passthrough, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 09/20] xen: Find an unbound irq number in reverse order (high to low)., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 03/20] xen: implement pirq type event channels, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 12/20] x86/PCI: Clean up pci_cache_line_size,
Konrad Rzeszutek Wilk <=
- [Xen-devel] [PATCH 15/20] x86: Copy-n-paste arch_teardown_msi_irqs from msi.c to io_apic.c., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 04/20] x86/io_apic: add get_nr_irqs_gsi(), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 05/20] xen: identity map gsi->irqs, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 13/20] x86/PCI: make sure _PAGE_IOMAP it set on pci mappings, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 16/20] x86: Introduce x86_msi_ops, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 20/20] xen-pcifront: Xen PCI frontend driver., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 17/20] xen/x86/PCI: Add support for the Xen PCI subsystem, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 18/20] xenbus: Xen paravirtualised PCI hotplug support., Konrad Rzeszutek Wilk
|
|
|
|
|