]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11350363417106af79008809f668034a842a5c4a
treed967cfaf2eb5d45fb7787e2b31d37f990362a6a3
parente8ef3b93e772ee03614057ba5b75ab7866b4153b
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