]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
turbostat: Add a helper to parse a single int out of a file
authorJosh Triplett <josh@joshtriplett.org>
Wed, 21 Aug 2013 00:20:16 +0000 (17:20 -0700)
committerLen Brown <len.brown@intel.com>
Sun, 19 Jan 2014 03:34:09 +0000 (22:34 -0500)
commit95aebc44e73b05d4e95774b983a63909de638808
tree90b0ae555877d88f166d651fb938c58b24d301ed
parent74823419761c11830ea1819365f82cf3d48795cb
turbostat: Add a helper to parse a single int out of a file

Many different chunks of code in turbostat open a file, parse a single
int out of it, and close it.  Factor that out into a common function.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c