tools/power/x86/intel-speed-select: Introduce api_version helper
authorZhang Rui <rui.zhang@intel.com>
Sat, 20 Aug 2022 12:51:33 +0000 (20:51 +0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 22 Mar 2023 20:36:53 +0000 (13:36 -0700)
commit887e5be91dd253ff73c0b2644442c0cae5d6dca0
tree4b1900e35bbb8457d91120bcf9a9d3ffb09553e5
parent20f06c9db22bf45de595a2a5855630b075596217
tools/power/x86/intel-speed-select: Introduce api_version helper

In some cases, the output format may be different with different
api_version because of different capabilities or for backward
capabilities reason.

Introduce api_version() to get the api_version of the platform running.

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
tools/power/x86/intel-speed-select/isst.h