diff options
-rw-r--r-- | drivers/pci/pcie/aspm.c | 12 | ||||
-rw-r--r-- | include/linux/pci.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index f1272dc54de1..e1e7026b838d 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c | |||
@@ -984,18 +984,6 @@ void pcie_no_aspm(void) | |||
984 | } | 984 | } |
985 | } | 985 | } |
986 | 986 | ||
987 | /** | ||
988 | * pcie_aspm_enabled - is PCIe ASPM enabled? | ||
989 | * | ||
990 | * Returns true if ASPM has not been disabled by the command-line option | ||
991 | * pcie_aspm=off. | ||
992 | **/ | ||
993 | int pcie_aspm_enabled(void) | ||
994 | { | ||
995 | return !aspm_disabled; | ||
996 | } | ||
997 | EXPORT_SYMBOL(pcie_aspm_enabled); | ||
998 | |||
999 | bool pcie_aspm_support_enabled(void) | 987 | bool pcie_aspm_support_enabled(void) |
1000 | { | 988 | { |
1001 | return aspm_support_enabled; | 989 | return aspm_support_enabled; |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 53cdc6dc411b..ac4703f719f7 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1200,10 +1200,8 @@ extern bool pcie_ports_auto; | |||
1200 | #endif | 1200 | #endif |
1201 | 1201 | ||
1202 | #ifndef CONFIG_PCIEASPM | 1202 | #ifndef CONFIG_PCIEASPM |
1203 | static inline int pcie_aspm_enabled(void) { return 0; } | ||
1204 | static inline bool pcie_aspm_support_enabled(void) { return false; } | 1203 | static inline bool pcie_aspm_support_enabled(void) { return false; } |
1205 | #else | 1204 | #else |
1206 | int pcie_aspm_enabled(void); | ||
1207 | bool pcie_aspm_support_enabled(void); | 1205 | bool pcie_aspm_support_enabled(void); |
1208 | #endif | 1206 | #endif |
1209 | 1207 | ||