Searched hist:"8 cb48b32a5defbbf333adb9a3f2101c39d37af64" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | diff 8cb48b32a5defbbf333adb9a3f2101c39d37af64 Fri Jun 01 09:04:31 CDT 2018 Prarit Bhargava <prarit@redhat.com> tools/power turbostat: track thread ID in cpu_topology
The code can be simplified if the cpu_topology *cpus tracks the thread IDs. This removes an additional file lookup and simplifies the counter initialization code.
Add thread ID to cpu_topology information and cleanup the counter initialization code.
v2: prevent thread_id from being overwritten
Signed-off-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Len Brown <len.brown@intel.com>
|