aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 0eaf381ae93e..bc88c30a418b 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -876,8 +876,14 @@ pci_set_master(struct pci_dev *dev)
876} 876}
877 877
878#ifndef HAVE_ARCH_PCI_MWI 878#ifndef HAVE_ARCH_PCI_MWI
879
880#ifndef PCI_CACHE_LINE_BYTES
881#define PCI_CACHE_LINE_BYTES L1_CACHE_BYTES
882#endif
883
879/* This can be overridden by arch code. */ 884/* This can be overridden by arch code. */
880u8 pci_cache_line_size = L1_CACHE_BYTES >> 2; 885/* Don't forget this is measured in 32-bit words, not bytes */
886u8 pci_cache_line_size = PCI_CACHE_LINE_BYTES / 4;
881 887
882/** 888/**
883 * pci_generic_prep_mwi - helper function for pci_set_mwi 889 * pci_generic_prep_mwi - helper function for pci_set_mwi