aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhang Rui <[email protected]>2022-08-21 22:39:16 +0800
committerZhang Rui <[email protected]>2023-09-27 22:14:18 +0800
commit2c019d657968bdd93e11615e0919d8181a54742d (patch)
treeead0d09ffd61a694177119788b570447e6037f52 /tools/perf/scripts/python
parentb98a6d78768ec459d394db8bc086d071eb6556c8 (diff)
tools/power/turbostat: Support alternative graphics sysfs knobs
/sys/class/graphics/fb0/device/drm/card0/ and /sys/class/drm/card0/ point to the same device node. But in some cases, one exists and the other one does not. Prefer to use /sys/class/drm/card0/, and fall back to /sys/class/graphics/fb0/device/drm/card0/. This recovers the "GFXMHz" and "GFXAMHz" columns on some platforms like a SPR server. Reviewed-by: Rodrigo Vivi <[email protected]> Signed-off-by: Zhang Rui <[email protected]> Reviewed-by: Len Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions