summaryrefslogtreecommitdiff
path: root/tools/net
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2017-03-04 15:42:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-08 10:26:11 +0200
commit86c469bea4ae129433d119b7eb178d40421db045 (patch)
tree421960515eb0a32def2acfb3c34a4abb90156944 /tools/net
parentc126bc6b94ddbc94af3382e31eeb927e7d6bc533 (diff)
tools/power turbostat: bugfix: GFXMHz column not changing
[ Upstream commit 22048c5485503749754b3b5daf9d99ef89fcacdc ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/net')
0 files changed, 0 insertions, 0 deletions