commit | 36229897ba966bb0dc9e060222ff17b198252367 | [log] [tgz] |
---|---|---|
author | Len Brown <len.brown@intel.com> | Fri Feb 26 20:51:02 2016 -0500 |
committer | Len Brown <len.brown@intel.com> | Sun Mar 13 03:55:40 2016 -0400 |
tree | 338ca7d3fa3ce6553b7b6a58bd40568a99a4a5de | |
parent | 58cc30a4e6086d542302e04eea39b2a438e4c5dd [diff] |
tools/power turbostat: make fewer systems calls skip the open(2)/close(2) on each msr read by keeping the /dev/cpu/*/msr files open. The remaining read(2) is generally far fewer cycles than the removed open(2) system call. Signed-off-by: Len Brown <len.brown@intel.com>