diff options
Diffstat (limited to 'include/linux/pci-aspm.h')
-rw-r--r-- | include/linux/pci-aspm.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/include/linux/pci-aspm.h b/include/linux/pci-aspm.h index 3cc06b059017..df28af5cef21 100644 --- a/include/linux/pci-aspm.h +++ b/include/linux/pci-aspm.h | |||
@@ -24,43 +24,12 @@ | |||
24 | #define PCIE_LINK_STATE_CLKPM 4 | 24 | #define PCIE_LINK_STATE_CLKPM 4 |
25 | 25 | ||
26 | #ifdef CONFIG_PCIEASPM | 26 | #ifdef CONFIG_PCIEASPM |
27 | void pcie_aspm_init_link_state(struct pci_dev *pdev); | ||
28 | void pcie_aspm_exit_link_state(struct pci_dev *pdev); | ||
29 | void pcie_aspm_pm_state_change(struct pci_dev *pdev); | ||
30 | void pcie_aspm_powersave_config_link(struct pci_dev *pdev); | ||
31 | void pci_disable_link_state(struct pci_dev *pdev, int state); | 27 | void pci_disable_link_state(struct pci_dev *pdev, int state); |
32 | void pci_disable_link_state_locked(struct pci_dev *pdev, int state); | 28 | void pci_disable_link_state_locked(struct pci_dev *pdev, int state); |
33 | void pcie_no_aspm(void); | 29 | void pcie_no_aspm(void); |
34 | #else | 30 | #else |
35 | static inline void pcie_aspm_init_link_state(struct pci_dev *pdev) | 31 | static inline void pci_disable_link_state(struct pci_dev *pdev, int state) { } |
36 | { | 32 | static inline void pcie_no_aspm(void) { } |
37 | } | ||
38 | static inline void pcie_aspm_exit_link_state(struct pci_dev *pdev) | ||
39 | { | ||
40 | } | ||
41 | static inline void pcie_aspm_pm_state_change(struct pci_dev *pdev) | ||
42 | { | ||
43 | } | ||
44 | static inline void pcie_aspm_powersave_config_link(struct pci_dev *pdev) | ||
45 | { | ||
46 | } | ||
47 | static inline void pci_disable_link_state(struct pci_dev *pdev, int state) | ||
48 | { | ||
49 | } | ||
50 | static inline void pcie_no_aspm(void) | ||
51 | { | ||
52 | } | ||
53 | #endif | 33 | #endif |
54 | 34 | ||
55 | #ifdef CONFIG_PCIEASPM_DEBUG /* this depends on CONFIG_PCIEASPM */ | ||
56 | void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev); | ||
57 | void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev); | ||
58 | #else | ||
59 | static inline void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev) | ||
60 | { | ||
61 | } | ||
62 | static inline void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev) | ||
63 | { | ||
64 | } | ||
65 | #endif | ||
66 | #endif /* LINUX_ASPM_H */ | 35 | #endif /* LINUX_ASPM_H */ |