linux/tools/power/x86/turbostat
Len Brown 22048c5485 tools/power turbostat: bugfix: GFXMHz column not changing
turbostat displays a GFXMHz column, which comes from reading
/sys/class/graphics/fb0/device/drm/card0/gt_cur_freq_mhz

But GFXMHz was not changing, even when a manual
cat /sys/class/graphics/fb0/device/drm/card0/gt_cur_freq_mhz
showed a new value.

It turns out that a rewind() on the open file is not sufficient,
fflush() (or a close/open) is needed to read fresh values.

Reported-by: Yaroslav Isakov <yaroslav.isakov@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2017-03-04 15:42:48 -05:00
..
.gitignore turbostat: Add a .gitignore to ignore the compiled turbostat binary 2014-01-18 22:34:10 -05:00
Makefile tools/power turbostat: use intel-family.h model strings 2016-12-01 01:33:19 -05:00
turbostat.8 tools/power turbostat: support "--hide C1" etc. 2017-03-01 00:14:24 -05:00
turbostat.c tools/power turbostat: bugfix: GFXMHz column not changing 2017-03-04 15:42:48 -05:00