diff mbox

[v2] compat: backport linux/pci-aspm.h

Message ID 1283433553-25991-1-git-send-email-hauke@hauke-m.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Hauke Mehrtens Sept. 2, 2010, 1:19 p.m. UTC
None
diff mbox

Patch

diff --git a/include/linux/compat-2.6.26.h b/include/linux/compat-2.6.26.h
index 8251177..30ee46c 100644
--- a/include/linux/compat-2.6.26.h
+++ b/include/linux/compat-2.6.26.h
@@ -394,6 +394,15 @@  struct net *dev_net(const struct net_device *dev)
 
 #endif /* xtensa */
 
+#define PCIE_LINK_STATE_L0S	1
+#define PCIE_LINK_STATE_L1	2
+#define PCIE_LINK_STATE_CLKPM	4
+
+static inline void pci_disable_link_state(struct pci_dev *pdev, int state)
+{
+}
+/* source: include/linux/pci-aspm.h */
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)) */
 
 #endif /* LINUX_26_26_COMPAT_H */
diff --git a/include/linux/pci-aspm.h b/include/linux/pci-aspm.h
new file mode 100644
index 0000000..2bc6efb
--- /dev/null
+++ b/include/linux/pci-aspm.h
@@ -0,0 +1,5 @@ 
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25))
+#include_next <linux/pci-aspm.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */