summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2024-11-14 15:59:44 +0800
committerLen Brown <len.brown@intel.com>2024-11-30 16:42:07 -0500
commitd071004e623b7433573019d67cba79e345d83006 (patch)
tree7967169c1edcb1494661fec9e46ed6443f8d9f00 /tools/perf/scripts/python/exported-sql-viewer.py
parentba99a4fc8c24dc7d35f18edb6e3b0a65345fbfa3 (diff)
downloadlinux-stable-d071004e623b7433573019d67cba79e345d83006.tar.gz
linux-stable-d071004e623b7433573019d67cba79e345d83006.tar.bz2
linux-stable-d071004e623b7433573019d67cba79e345d83006.zip
tools/power turbostat: Consolidate graphics sysfs access
Currently, there is an inconsistency in how graphics sysfs knobs are accessed: graphics residency sysfs knobs are opened and closed for each read, while graphics frequency sysfs knobs are opened once and remain open until turbostat exits. This inconsistency is confusing and adds unnecessary code complexity. Consolidate the access method by opening the sysfs files once and reusing the file pointers for subsequent accesses. This approach simplifies the code and ensures a consistent method for accessing graphics sysfs knobs. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions