diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-10-05 16:17:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 18:03:17 -0400 |
commit | 7f785763660e75c9eddaddea3d618696af4ae3a2 (patch) | |
tree | 4538775b2b0f05d77509dd2b6b91ba9e6429154c /drivers/pci/pci.h | |
parent | fd6e732186ab522c812ab19c2c5e5befb8ec8115 (diff) |
pci: implement "pci=noaer"
For cases in which CONFIG_PCIEAER=y (such as distro kernels), allow users
to disable PCIE Advanced Error Reporting by using "pci=noaer" on the
kernel command line.
This can be used to work around hardware or (kernel) software problems.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 4c36e80f6d2..5360d73d494 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -52,6 +52,12 @@ void pci_restore_msi_state(struct pci_dev *dev); | |||
52 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | 52 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef CONFIG_PCIEAER | ||
56 | void pci_no_aer(void); | ||
57 | #else | ||
58 | static inline void pci_no_aer(void) { } | ||
59 | #endif | ||
60 | |||
55 | static inline int pci_no_d1d2(struct pci_dev *dev) | 61 | static inline int pci_no_d1d2(struct pci_dev *dev) |
56 | { | 62 | { |
57 | unsigned int parent_dstates = 0; | 63 | unsigned int parent_dstates = 0; |