Commit 99b38fa
tools/power turbostat: Eliminate unnecessary data structure allocation
Linux core_id's are a per-package namespace, not a per-node namespace.
Rename topo.cores_per_node to topo.cores_per_pkg to reflect this.
Eliminate topo.nodes_per_pkg from the sizing for core data structures,
since it has no role except to unnecessarily bloat the allocation.
Validated on multiple Intel platforms (ICX/SPR/SRF/EMR/GNR/CWF) with
various CPU online/offline configurations and SMT enabled/disabled
scenarios.
No functional changes.
[lenb: commit message]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>1 parent b8ead30 commit 99b38fa
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2409 | 2409 | | |
2410 | 2410 | | |
2411 | 2411 | | |
2412 | | - | |
| 2412 | + | |
2413 | 2413 | | |
2414 | 2414 | | |
2415 | 2415 | | |
| |||
9633 | 9633 | | |
9634 | 9634 | | |
9635 | 9635 | | |
9636 | | - | |
| 9636 | + | |
9637 | 9637 | | |
9638 | | - | |
| 9638 | + | |
9639 | 9639 | | |
9640 | 9640 | | |
9641 | 9641 | | |
| |||
9700 | 9700 | | |
9701 | 9701 | | |
9702 | 9702 | | |
9703 | | - | |
| 9703 | + | |
9704 | 9704 | | |
9705 | 9705 | | |
9706 | 9706 | | |
| |||
0 commit comments