Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Len Brown 6be5c151 070e9236

+4 -4
+4 -4
tools/power/x86/turbostat/turbostat.c
··· 2393 2393 } platform_counters_odd, platform_counters_even; 2394 2394 2395 2395 struct cpu_topology { 2396 + int cpu_id; 2396 2397 int core_id; /* unique within a package */ 2397 2398 int package_id; 2398 2399 int die_id; 2399 2400 int l3_id; 2400 - int logical_cpu_id; 2401 2401 int physical_node_id; 2402 2402 int logical_node_id; /* 0-based count within the package */ 2403 2403 int ht_id; /* unique within a core */ ··· 6099 6099 char path[80]; 6100 6100 FILE *filep; 6101 6101 int i; 6102 - int cpu = thiscpu->logical_cpu_id; 6102 + int cpu = thiscpu->cpu_id; 6103 6103 6104 6104 for (i = 0; i <= topo.max_cpu_num; i++) { 6105 6105 sprintf(path, "/sys/devices/system/cpu/cpu%d/node%i/cpulist", cpu, i); ··· 6174 6174 FILE *filep; 6175 6175 unsigned long map; 6176 6176 int so, shift, sib_core; 6177 - int cpu = thiscpu->logical_cpu_id; 6177 + int cpu = thiscpu->cpu_id; 6178 6178 int offset = topo.max_cpu_num + 1; 6179 6179 size_t size; 6180 6180 int thread_id = 0; ··· 9596 9596 continue; 9597 9597 } 9598 9598 9599 - cpus[i].logical_cpu_id = i; 9599 + cpus[i].cpu_id = i; 9600 9600 9601 9601 /* get package information */ 9602 9602 cpus[i].package_id = get_package_id(i);