diff options
author | Zhang Rui <rui.zhang@intel.com> | 2024-11-14 08:59:44 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2024-11-30 22:42:07 +0100 |
commit | d071004e623b7433573019d67cba79e345d83006 (patch) | |
tree | 7967169c1edcb1494661fec9e46ed6443f8d9f00 /COPYING | |
parent | tools/power turbostat: Remove unnecessary fflush() call (diff) | |
download | linux-d071004e623b7433573019d67cba79e345d83006.tar.xz linux-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 'COPYING')
0 files changed, 0 insertions, 0 deletions