tools/power turbostat: Cleanup package_id
authorLen Brown <len.brown@intel.com>
Sun, 8 Feb 2026 15:09:25 +0000 (09:09 -0600)
committerLen Brown <len.brown@intel.com>
Fri, 13 Feb 2026 14:53:17 +0000 (08:53 -0600)
commit4aaf7d07a089696e16e1ca70c2d501dc8a2224a4
tree2d1b0e1bf55b5e844bd4c0e0e94795c4da43362a
parent54ca69f33cf1b67dd3dc9555fb9d82c83ee3ba89
tools/power turbostat: Cleanup package_id

The kernel topology sysfs uses the name "physical_package_id"
because it is allowed to be sparse.

Inside Turbostat, that physical package_id namespace is the only
package_id namespace, so re-name it to simply be "package_id"
in cpus[].

Delete the redundant copy of package_id in pkg_data.
Rely instead on the single copy of the truth in cpus[].

No functional change.

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