tools/power/x86/intel-speed-select: Turbo-freq feature auto mode
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 10 Oct 2019 20:29:38 +0000 (13:29 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Oct 2019 08:02:29 +0000 (11:02 +0300)
commita6a82f9bcd2ad3fab5f20fc406727dc62775db92
tree4d1e99579e1d701e269fc6227c5854e0f7393236
parent354bd06f40c4ba7b2f12d9f0f119dff62a2f922f
tools/power/x86/intel-speed-select: Turbo-freq feature auto mode

Introduce --auto|-a option to turbo-freq enable feature, so that it
does in one step for users who are OK by setting all passed target cores
as high priority and set in CLOS 0 and remaining in CLOS 3. In this way,
users don't have to take multiple steps to enable turbo-freq feature. For
users who want more fine grain control, they can always use core-power
feature to set custom CLOS configuration and assignment.

While here also print the error to output when clos configuration fails.

For example
intel-speed-select -c 0-4 turbo-freq enable --auto

The above command will enable turbo-freq and core-power feature. Also
mark CPU 0 to CPU 4 as high priority.

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-config.c