Skip to content

Commit 6be5c15

Browse files
committed
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>
1 parent 070e923 commit 6be5c15

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/power/x86/turbostat/turbostat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,11 +2393,11 @@ struct platform_counters {
23932393
} platform_counters_odd, platform_counters_even;
23942394

23952395
struct cpu_topology {
2396+
int cpu_id;
23962397
int core_id; /* unique within a package */
23972398
int package_id;
23982399
int die_id;
23992400
int l3_id;
2400-
int logical_cpu_id;
24012401
int physical_node_id;
24022402
int logical_node_id; /* 0-based count within the package */
24032403
int ht_id; /* unique within a core */
@@ -6099,7 +6099,7 @@ int get_physical_node_id(struct cpu_topology *thiscpu)
60996099
char path[80];
61006100
FILE *filep;
61016101
int i;
6102-
int cpu = thiscpu->logical_cpu_id;
6102+
int cpu = thiscpu->cpu_id;
61036103

61046104
for (i = 0; i <= topo.max_cpu_num; i++) {
61056105
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)
61746174
FILE *filep;
61756175
unsigned long map;
61766176
int so, shift, sib_core;
6177-
int cpu = thiscpu->logical_cpu_id;
6177+
int cpu = thiscpu->cpu_id;
61786178
int offset = topo.max_cpu_num + 1;
61796179
size_t size;
61806180
int thread_id = 0;
@@ -9596,7 +9596,7 @@ void topology_probe(bool startup)
95969596
continue;
95979597
}
95989598

9599-
cpus[i].logical_cpu_id = i;
9599+
cpus[i].cpu_id = i;
96009600

96019601
/* get package information */
96029602
cpus[i].package_id = get_package_id(i);

0 commit comments

Comments
 (0)