linux/tools/power
Len Brown 0e2d8f058f tools/power turbostat: Fix node and siblings lookup data
The turbostat code only looks at thread_siblings_list to determine if
processing units/threads are on the same the core.  This works well on
Intel systems which have a shared L1 instruction and data cache.  This
does not work on AMD systems which have shared L1 instruction cache but
separate L1 data caches.  Other utilities also check sibling's core ID
to determine if the processing unit shares the same core.

Additionally, the cpu_topology *cpus list used in topology_probe() can
be used elsewhere in the code to simplify things.

Export *cpus to the entire turbostat code, and add Processing Unit/Thread
IDs information to each cpu_topology struct.  Confirm that the thread
is on the same core as indicated by thread_siblings_list.

[v2]: Fixup CPU_* usage that caused gcc malloc error.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2018-06-01 23:12:46 -04:00
..
acpi tools: power/acpi, revert to LD = gcc 2018-05-04 11:24:22 +02:00
cpupower cpupower: Remove FSF address 2017-12-15 08:27:39 -07:00
pm-graph pm-graph: AnalyzeSuspend v5.0 2018-02-21 23:56:22 +01:00
x86 tools/power turbostat: Fix node and siblings lookup data 2018-06-01 23:12:46 -04:00