summaryrefslogtreecommitdiffstats
path: root/net/netlabel
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2018-06-01 22:08:58 -0400
committerLen Brown <len.brown@intel.com>2018-06-01 23:12:46 -0400
commit0e2d8f058f9924c373ee7061064936cd582bcbe7 (patch)
treeb9d5f470776eaa311e544882a8a83d6edc829f3d /net/netlabel
parent843c57916dde0e260e500e4ae1a443a7d7fbe962 (diff)
downloadlinux-0e2d8f058f9924c373ee7061064936cd582bcbe7.tar.bz2
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>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions