PCI/ASPM: Move pci_configure_ltr() to aspm.c
authorDavid E. Box <david.e.box@linux.intel.com>
Fri, 23 Feb 2024 20:58:47 +0000 (14:58 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 7 Mar 2024 20:29:08 +0000 (14:29 -0600)
commitfa84f4435a6202dd90248517f41e54bf3fb85bc5
treef2cef8628be750e57ae7d2238231bb7f1404160e
parent6613476e225e090cc9aad49be7fa504e290dd33d
PCI/ASPM: Move pci_configure_ltr() to aspm.c

The Latency Tolerance Reporting (LTR) mechanism supports the ASPM L1.2
state and is only configured when CONFIG_PCIEASPM is set.

Move pci_configure_ltr() and pci_bridge_reconfigure_ltr() into aspm.c since
they only build when CONFIG_PCIEASPM is set.  No functional change
intended.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20240128233212.1139663-2-david.e.box@linux.intel.com
[bhelgaas: commit log, split build change from function moves]
Link: https://lore.kernel.org/r/20240223205851.114931-2-helgaas@kernel.org
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/aspm.c
drivers/pci/probe.c