Commit f8b136ef authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

tools/power turbostat: Restore GFX sysfs fflush() call



Do fflush() to discard the buffered data, before each read of the
graphics sysfs knobs.

Fixes: ba99a4fc ("tools/power turbostat: Remove unnecessary fflush() call")
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3ae85086
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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: