diff options
author | David E. Box <david.e.box@linux.intel.com> | 2024-02-23 14:58:48 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-03-07 14:29:17 -0600 |
commit | f3994bba8200b49e3eacbe5914cd13f228e0db37 (patch) | |
tree | a12f055dc92a7999683fb8fdc1649bd6564af799 /drivers/pci/pcie/aspm.c | |
parent | fa84f4435a6202dd90248517f41e54bf3fb85bc5 (diff) | |
download | lwn-f3994bba8200b49e3eacbe5914cd13f228e0db37.tar.gz lwn-f3994bba8200b49e3eacbe5914cd13f228e0db37.zip |
PCI/ASPM: Always build aspm.c
Some ASPM-related tasks, such as save and restore of LTR and L1SS
capabilities, still need to be performed when CONFIG_PCIEASPM is not
enabled. To prepare for these changes, wrap the current code in aspm.c
with an #ifdef and always build the file.
Link: https://lore.kernel.org/r/20240128233212.1139663-2-david.e.box@linux.intel.com
[bhelgaas: split build change from function moves]
Link: https://lore.kernel.org/r/20240223205851.114931-3-helgaas@kernel.org
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie/aspm.c')
-rw-r--r-- | drivers/pci/pcie/aspm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index d1538f73f2f9..d50c0f83430f 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -24,6 +24,8 @@ #include "../pci.h" +#ifdef CONFIG_PCIEASPM + #ifdef MODULE_PARAM_PREFIX #undef MODULE_PARAM_PREFIX #endif @@ -1517,3 +1519,5 @@ bool pcie_aspm_support_enabled(void) { return aspm_support_enabled; } + +#endif /* CONFIG_PCIEASPM */ |