]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
tools/power turbostat: Expunge logical_cpu_id
authorLen Brown <len.brown@intel.com>
Fri, 13 Feb 2026 05:52:02 +0000 (23:52 -0600)
committerLen Brown <len.brown@intel.com>
Fri, 13 Feb 2026 14:53:17 +0000 (08:53 -0600)
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>
tools/power/x86/turbostat/turbostat.c

index 12d5f8112c92fdad56b3909b90deda203058057e..9fdb41410f1534b08d774164360828a75fb0b317 100644 (file)
@@ -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);