]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: track thread ID in cpu_topology
authorPrarit Bhargava <prarit@redhat.com>
Fri, 1 Jun 2018 14:04:31 +0000 (10:04 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 2 Jun 2018 03:12:46 +0000 (23:12 -0400)
commit568cf986272664c1fc866a8dad9e6038453fe162
tree6a5be1e07162d36ef175c6d6f63e5929a6a2ff6e
parent27876d799ea2e55a2560eb4e06cf0b8311953206
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>
tools/power/x86/turbostat/turbostat.c