diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-03-22 14:39:52 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-05-02 17:02:19 -0500 |
commit | dc69062a1a73f0fe33a83401e8a3b1d5d54b43af (patch) | |
tree | e166c46a03ce8dcf704075ad4827fd147186d50b /tools/perf/scripts/python/task-analyzer.py | |
parent | b478e162f227d17d6a29f40ffd464af358334971 (diff) |
PCI/ASPM: Clean up ASPM disable/enable mask calculation
With only one set of defines remaining, state can be almost used as-is to
set ->aspm_disable/default. Only CLKPM and L1 PM substates need special
handling.
Remove unnecessary if conditions that can use the state variable bits
directly. Move ASPM mask calculation into pci_calc_aspm_enable_mask() and
pci_calc_aspm_disable_mask() helpers which makes it easier to alter state
variable directly.
Link: https://lore.kernel.org/r/20240322123952.6384-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions