mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
PCI: Remove unused pcie_aspm_enabled()
My philosophy is unused code is dead code. And dead code is subject to bit
rot and is a likely source of bugs. Use it or lose it.
This reverts part of 3e1b16002a
("ACPI/PCI: PCIe ASPM _OSC support
capabilities called when root bridge added"), removing this interface:
pcie_aspm_enabled()
[bhelgaas: split to separate patch]
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Andrew Patterson <andrew.patterson@hp.com>
This commit is contained in:
parent
3984ca1c6e
commit
8f92fb06ff
2 changed files with 0 additions and 14 deletions
|
@ -984,18 +984,6 @@ void pcie_no_aspm(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* pcie_aspm_enabled - is PCIe ASPM enabled?
|
|
||||||
*
|
|
||||||
* Returns true if ASPM has not been disabled by the command-line option
|
|
||||||
* pcie_aspm=off.
|
|
||||||
**/
|
|
||||||
int pcie_aspm_enabled(void)
|
|
||||||
{
|
|
||||||
return !aspm_disabled;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(pcie_aspm_enabled);
|
|
||||||
|
|
||||||
bool pcie_aspm_support_enabled(void)
|
bool pcie_aspm_support_enabled(void)
|
||||||
{
|
{
|
||||||
return aspm_support_enabled;
|
return aspm_support_enabled;
|
||||||
|
|
|
@ -1200,10 +1200,8 @@ extern bool pcie_ports_auto;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_PCIEASPM
|
#ifndef CONFIG_PCIEASPM
|
||||||
static inline int pcie_aspm_enabled(void) { return 0; }
|
|
||||||
static inline bool pcie_aspm_support_enabled(void) { return false; }
|
static inline bool pcie_aspm_support_enabled(void) { return false; }
|
||||||
#else
|
#else
|
||||||
int pcie_aspm_enabled(void);
|
|
||||||
bool pcie_aspm_support_enabled(void);
|
bool pcie_aspm_support_enabled(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue