mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
tools/power turbostat: Restore GFX sysfs fflush() call
Do fflush() to discard the buffered data, before each read of the
graphics sysfs knobs.
Fixes: ba99a4fc8c ("tools/power turbostat: Remove unnecessary fflush() call")
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
3ae8508663
commit
f8b136ef26
|
|
@ -6039,6 +6039,7 @@ int snapshot_graphics(int idx)
|
|||
int retval;
|
||||
|
||||
rewind(gfx_info[idx].fp);
|
||||
fflush(gfx_info[idx].fp);
|
||||
|
||||
switch (idx) {
|
||||
case GFX_rc6:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user