diff options
author | Ilpo Järvinen <[email protected]> | 2024-03-22 14:39:51 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-05-02 16:58:11 -0500 |
commit | b478e162f227d17d6a29f40ffd464af358334971 (patch) | |
tree | 8163b44acc250c0bbaed43987ce32ce3805ed818 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) |
PCI/ASPM: Consolidate link state defines
The linux/pci.h and aspm.c files define their own sets of link state
related defines which are almost the same.
Consolidate the use of defines into those defined by linux/pci.h and expand
PCIE_LINK_STATE_L0S to match earlier ASPM_STATE_L0S that includes both
upstream and downstream bits. Rename also the defines that are internal to
aspm.c to start with PCIE_LINK_STATE for consistency.
While the PCIE_LINK_STATE_L0S BIT(0) -> (BIT(0) | BIT(1)) transformation is
not 1:1, in practice aspm.c already used ASPM_STATE_L0S that has both bits
enabled except during mapping.
While at it, place the PCIE_LINK_STATE_CLKPM define last to have more
logical grouping.
Use static_assert() to ensure PCIE_LINK_STATE_L0S is strictly equal to the
combination of PCIE_LINK_STATE_L0S_UP/DW.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions