aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorZhang Rui <[email protected]>2024-11-14 15:59:44 +0800
committerLen Brown <[email protected]>2024-11-30 16:42:07 -0500
commitd071004e623b7433573019d67cba79e345d83006 (patch)
tree7967169c1edcb1494661fec9e46ed6443f8d9f00 /drivers/fpga/fpga-bridge.c
parentba99a4fc8c24dc7d35f18edb6e3b0a65345fbfa3 (diff)
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 <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions