tools/power/x86/intel-speed-select: Display error for invalid priority type

When priority type for core-power enable command is anything more than 1
display error before change to 1, which is ordered priority.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Srinivas Pandruvada 2020-03-05 14:45:25 -08:00 committed by Andy Shevchenko
parent 6c8edba37c
commit 6d1f2dc8a5

View File

@ -897,6 +897,9 @@ int isst_pm_qos_config(int cpu, int enable_clos, int priority_type)
else
req = req & ~BIT(1);
if (priority_type > 1)
fprintf(stderr, "Invalid priority type: Changing type to ordered\n");
if (priority_type)
req = req | BIT(2);
else