Searched hist:ef6057417a6f770dfc2f1f551763cedb4d93a9cf (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | diff ef6057417a6f770dfc2f1f551763cedb4d93a9cf Fri Jun 01 09:04:30 CDT 2018 Prarit Bhargava <prarit@redhat.com> tools/power turbostat: Calculate additional node information for a package
The code currently assumes each package has exactly one node. This is not the case for AMD systems and Intel systems with COD. AMD systems also may re-enumerate each node's core IDs starting at 0 (for example, an AMD processor may have two nodes, each with core IDs from 0 to 7). In order to properly enumerate the cores we need to track both the physical and logical node IDs.
Add physical_node_id to track the node ID assigned by the kernel, and logical_node_id used by turbostat to track the nodes per package ie) a 0-based count within the package.
Signed-off-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Len Brown <len.brown@intel.com>
|