diff options
author | 2025-04-07 20:43:31 +0800 | |
---|---|---|
committer | 2025-05-02 23:06:45 +0530 | |
commit | ed798ff1c52f6fe232ce2e24e68fb63f5470ab97 (patch) | |
tree | eef0cf9bfca521e9c9969488f6dfeeceb840669c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.15-rc1 (diff) | |
download | wireguard-linux-ed798ff1c52f6fe232ce2e24e68fb63f5470ab97.tar.xz wireguard-linux-ed798ff1c52f6fe232ce2e24e68fb63f5470ab97.zip |
PCI: tegra194: Create debugfs directory only when CONFIG_PCIEASPM is enabled
Previously, the debugfs directory was unconditionally created in
tegra_pcie_config_rp() regardless of the CONFIG_PCIEASPM setting.
This led to unnecessary directory creation when ASPM support was disabled
since only ASPM state count was exposed through debugfs.
Hence, move the debugfs directory creation into init_debugfs() which is
conditionally compiled based on CONFIG_PCIEASPM. This ensures that both
the directory and 'aspm_state_cnt' entry are only created when ASPM is
enabled and avoids cluttering debugfs with empty directories when ASPM is
disabled.
Signed-off-by: Hans Zhang <18255117159@163.com>
[mani: subject and description change]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/20250407124331.69459-1-18255117159@163.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions