]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/power/turbostat: Cache graphics sysfs path
authorZhang Rui <rui.zhang@intel.com>
Tue, 12 Mar 2024 06:23:37 +0000 (14:23 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 9 Apr 2024 18:04:23 +0000 (14:04 -0400)
commit4e2bbbf78cf7144204214fd0bd7cca309acd8f89
tree03250c22da10ba431122716af271df816b37890a
parentbb5db22c13125b38b0740e19c18ae94f8e5a0eb6
tools/power/turbostat: Cache graphics sysfs path

Graphics drivers (i915/Xe) have different sysfs knobs on different
platforms, and it is possible that different sysfs knobs fit into the
same turbostat columns.

Instead of specifying different sysfs knobs every time, detect them
once and cache the path for future use.

No functional change.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c