diff options
| author | Len Brown <len.brown@intel.com> | 2026-02-12 23:52:02 -0600 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-02-13 08:53:17 -0600 |
| commit | 6be5c151eb1ebf4d5007b9f60c729f7381255a23 (patch) | |
| tree | 17abe828b135905560dfce86521766faa86aeaa1 /tools | |
| parent | 070e92361eeca21407ce90b582698a877ece5694 (diff) | |
tools/power turbostat: Expunge logical_cpu_id
There is only once cpu_id name space -- cpu_id.
Expunge the term logical_cpu_id.
No functional change.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 12d5f8112c92..9fdb41410f15 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -2393,11 +2393,11 @@ struct platform_counters { } platform_counters_odd, platform_counters_even; struct cpu_topology { + int cpu_id; int core_id; /* unique within a package */ int package_id; int die_id; int l3_id; - int logical_cpu_id; int physical_node_id; int logical_node_id; /* 0-based count within the package */ int ht_id; /* unique within a core */ @@ -6099,7 +6099,7 @@ int get_physical_node_id(struct cpu_topology *thiscpu) char path[80]; FILE *filep; int i; - int cpu = thiscpu->logical_cpu_id; + int cpu = thiscpu->cpu_id; for (i = 0; i <= topo.max_cpu_num; i++) { sprintf(path, "/sys/devices/system/cpu/cpu%d/node%i/cpulist", cpu, i); @@ -6174,7 +6174,7 @@ int get_thread_siblings(struct cpu_topology *thiscpu) FILE *filep; unsigned long map; int so, shift, sib_core; - int cpu = thiscpu->logical_cpu_id; + int cpu = thiscpu->cpu_id; int offset = topo.max_cpu_num + 1; size_t size; int thread_id = 0; @@ -9596,7 +9596,7 @@ void topology_probe(bool startup) continue; } - cpus[i].logical_cpu_id = i; + cpus[i].cpu_id = i; /* get package information */ cpus[i].package_id = get_package_id(i); |
