tools/power/x86/intel-speed-select: Utilize cpu_map to get physical id
authorZhang Rui <rui.zhang@intel.com>
Sat, 20 Aug 2022 15:58:26 +0000 (23:58 +0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 15 Sep 2022 18:16:06 +0000 (11:16 -0700)
commitca56725d78c5241f65cc565e5a865f45d943dc04
treed967cfaf2eb5d45fb7787e2b31d37f990362a6a3
parenta05b925ace3ea977fdadb32c969c22ef51029ee7
tools/power/x86/intel-speed-select: Utilize cpu_map to get physical id

cpu_map already has the cpu package id, die id information.
Thus there is no need to re-evaluating sysfs attributes or stored data
file to get the package id and die id of a given CPU each time.

In order to unitlize this, cpu_map needs to be created unconditionally.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c