提交 5a06240a 编写于 作者: S Srinivas Pandruvada 提交者: Caspar Zhang

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

task #29499913

commit 6d1f2dc8a5d9d1675e664c11ebecbcef739bf058 upstream

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: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NErwei Deng <erwei@linux.alibaba.com>
Reviewed-by: NArtie Ding <artie.ding@linux.alibaba.com>
上级 d7a8e735
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册