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:
Родитель
6c8edba37c
Коммит
6d1f2dc8a5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче