diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/pci/pci.c | 9 | ||||
-rw-r--r-- | arch/x86/pci/common.c | 8 |
2 files changed, 6 insertions, 11 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index c0fca2c1c858..d60e7195b7dd 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -720,9 +720,6 @@ int ia64_pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size) | |||
720 | return ret; | 720 | return ret; |
721 | } | 721 | } |
722 | 722 | ||
723 | /* It's defined in drivers/pci/pci.c */ | ||
724 | extern u8 pci_cache_line_size; | ||
725 | |||
726 | /** | 723 | /** |
727 | * set_pci_cacheline_size - determine cacheline size for PCI devices | 724 | * set_pci_cacheline_size - determine cacheline size for PCI devices |
728 | * | 725 | * |
@@ -731,7 +728,7 @@ extern u8 pci_cache_line_size; | |||
731 | * | 728 | * |
732 | * Code mostly taken from arch/ia64/kernel/palinfo.c:cache_info(). | 729 | * Code mostly taken from arch/ia64/kernel/palinfo.c:cache_info(). |
733 | */ | 730 | */ |
734 | static void __init set_pci_cacheline_size(void) | 731 | static void __init set_pci_dfl_cacheline_size(void) |
735 | { | 732 | { |
736 | unsigned long levels, unique_caches; | 733 | unsigned long levels, unique_caches; |
737 | long status; | 734 | long status; |
@@ -751,7 +748,7 @@ static void __init set_pci_cacheline_size(void) | |||
751 | "(status=%ld)\n", __func__, status); | 748 | "(status=%ld)\n", __func__, status); |
752 | return; | 749 | return; |
753 | } | 750 | } |
754 | pci_cache_line_size = (1 << cci.pcci_line_size) / 4; | 751 | pci_dfl_cache_line_size = (1 << cci.pcci_line_size) / 4; |
755 | } | 752 | } |
756 | 753 | ||
757 | u64 ia64_dma_get_required_mask(struct device *dev) | 754 | u64 ia64_dma_get_required_mask(struct device *dev) |
@@ -782,7 +779,7 @@ EXPORT_SYMBOL_GPL(dma_get_required_mask); | |||
782 | 779 | ||
783 | static int __init pcibios_init(void) | 780 | static int __init pcibios_init(void) |
784 | { | 781 | { |
785 | set_pci_cacheline_size(); | 782 | set_pci_dfl_cacheline_size(); |
786 | return 0; | 783 | return 0; |
787 | } | 784 | } |
788 | 785 | ||
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 1331fcf26143..fbeec31316cf 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -410,8 +410,6 @@ struct pci_bus * __devinit pcibios_scan_root(int busnum) | |||
410 | return bus; | 410 | return bus; |
411 | } | 411 | } |
412 | 412 | ||
413 | extern u8 pci_cache_line_size; | ||
414 | |||
415 | int __init pcibios_init(void) | 413 | int __init pcibios_init(void) |
416 | { | 414 | { |
417 | struct cpuinfo_x86 *c = &boot_cpu_data; | 415 | struct cpuinfo_x86 *c = &boot_cpu_data; |
@@ -426,11 +424,11 @@ int __init pcibios_init(void) | |||
426 | * and P4. It's also good for 386/486s (which actually have 16) | 424 | * and P4. It's also good for 386/486s (which actually have 16) |
427 | * as quite a few PCI devices do not support smaller values. | 425 | * as quite a few PCI devices do not support smaller values. |
428 | */ | 426 | */ |
429 | pci_cache_line_size = 32 >> 2; | 427 | pci_dfl_cache_line_size = 32 >> 2; |
430 | if (c->x86 >= 6 && c->x86_vendor == X86_VENDOR_AMD) | 428 | if (c->x86 >= 6 && c->x86_vendor == X86_VENDOR_AMD) |
431 | pci_cache_line_size = 64 >> 2; /* K7 & K8 */ | 429 | pci_dfl_cache_line_size = 64 >> 2; /* K7 & K8 */ |
432 | else if (c->x86 > 6 && c->x86_vendor == X86_VENDOR_INTEL) | 430 | else if (c->x86 > 6 && c->x86_vendor == X86_VENDOR_INTEL) |
433 | pci_cache_line_size = 128 >> 2; /* P4 */ | 431 | pci_dfl_cache_line_size = 128 >> 2; /* P4 */ |
434 | 432 | ||
435 | pcibios_resource_survey(); | 433 | pcibios_resource_survey(); |
436 | 434 | ||