tools/power/x86/intel-speed-select: Refuse to disable core-power when getting used
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 10 Oct 2019 20:29:39 +0000 (13:29 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Oct 2019 08:02:29 +0000 (11:02 +0300)
commit4e26fabfe15ca67125f1b6984671c2e9048d64a5
tree672e70eb80651eac4d9d3c591a579ececdf83040
parenta6a82f9bcd2ad3fab5f20fc406727dc62775db92
tools/power/x86/intel-speed-select: Refuse to disable core-power when getting used

The turbo-freq feature is dependent on the core-power feature. If the
core-power feature is disabled while the turbo-freq feature is enabled,
this will break the turbo-freq feature. This is a firmware limitation,
where they can't return error under this scenario.

So when trying to disable core-power, make sure that the turbo-freq
feature is not enabled. If it enabled, return error if user is trying to
disable the core-power feature.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/power/x86/intel-speed-select/isst-core.c