tools/power/turbostat: Unify graphics sysfs snapshots
authorZhang Rui <rui.zhang@intel.com>
Wed, 13 Mar 2024 02:12:19 +0000 (10:12 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 9 Apr 2024 18:04:23 +0000 (14:04 -0400)
commitde39d38c06eb047954c5ad20a3f9acb6d3c78498
treeba102dbe08477eb91f74562058c91aec63d1510d
parent4e2bbbf78cf7144204214fd0bd7cca309acd8f89
tools/power/turbostat: Unify graphics sysfs snapshots

Graphics sysfs snapshots share similar logic.
Combine them into one function to avoid code duplication.

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