From: Len Brown Date: Fri, 13 Feb 2026 05:52:02 +0000 (-0600) Subject: tools/power turbostat: Expunge logical_cpu_id X-Git-Tag: ceph-for-7.0-rc4~158^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6be5c151eb1ebf4d5007b9f60c729f7381255a23;p=ceph-client.git 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 --- 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);