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 коммит произвёл Andy Shevchenko
Родитель 6c8edba37c
Коммит 6d1f2dc8a5
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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