tools/power/x86/intel-speed-select: Improve isst_print_extended_platform_info
authorZhang Rui <rui.zhang@intel.com>
Wed, 17 Aug 2022 08:11:13 +0000 (16:11 +0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 22 Mar 2023 20:36:49 +0000 (13:36 -0700)
commitad7e17fcb1261a4445f973369b610c972098e87f
treeb62525a4a2bc9161e7868e59eb93340dc29efa47
parentc77a8d4af68d98d0d83aa68f90041b395213c589
tools/power/x86/intel-speed-select: Improve isst_print_extended_platform_info

The main thing done in isst_print_extended_platform_info is to get the
isst feature status by checking one of the power domains of the
platform.

This can be done using the for_each_online_power_domain_in_set()
function, which makes the code clean and easier to read.

No functional changes are expected.

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