tools/power turbostat: Rename physical_core_id to core_id
authorLen Brown <len.brown@intel.com>
Sun, 8 Feb 2026 15:25:51 +0000 (09:25 -0600)
committerLen Brown <len.brown@intel.com>
Fri, 13 Feb 2026 14:53:17 +0000 (08:53 -0600)
commit5e160646f4dbca7cf9cc09abc31a22931e362b8a
tree82391dd85669ffea8801cb5dce7854e1412eae06
parent4aaf7d07a089696e16e1ca70c2d501dc8a2224a4
tools/power turbostat: Rename physical_core_id to core_id

The Linux Kernel topology sysfs is flawed.
core_id is not globally unique, but is per-package.

Turbostat works around this when it needs to, with

        rapl_core_id = cpus[cpu].core_id;
        rapl_core_id += cpus[cpu].package_id * nr_cores_per_package

Otherwise, turbostat handles core_id as subservient to each package.

As there is only one core_id namespace, rename
physical_core_id to simply be core_id.

No functional change.

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c