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

tools/power/x86/intel-speed-select: Use Frequency weight for CLOS

task #29499913

commit 21c3390d61286912cef312dc4752719142ce0d54 upstream

Use different frequency weights for CLOS 0 and and CLOS1-3, to define
relative priority for power budgeting. This will be used for --auto
mode to enable base-freq and turbo-freq feature.
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>
上级 ddd6b2b6
...@@ -1260,15 +1260,15 @@ static int set_core_priority_and_min(int cpu, int mask_size, ...@@ -1260,15 +1260,15 @@ static int set_core_priority_and_min(int cpu, int mask_size,
if (ret) if (ret)
return ret; return ret;
ret = set_clos_param(cpu, 1, 15, 0, min_low, 0xff); ret = set_clos_param(cpu, 1, 15, 15, min_low, 0xff);
if (ret) if (ret)
return ret; return ret;
ret = set_clos_param(cpu, 2, 15, 0, min_low, 0xff); ret = set_clos_param(cpu, 2, 15, 15, min_low, 0xff);
if (ret) if (ret)
return ret; return ret;
ret = set_clos_param(cpu, 3, 15, 0, min_low, 0xff); ret = set_clos_param(cpu, 3, 15, 15, min_low, 0xff);
if (ret) if (ret)
return ret; return ret;
...@@ -1589,15 +1589,15 @@ static void set_fact_enable(int arg) ...@@ -1589,15 +1589,15 @@ static void set_fact_enable(int arg)
if (ret) if (ret)
goto error_disp; goto error_disp;
ret = set_clos_param(i, 1, 15, 0, 0, 0xff); ret = set_clos_param(i, 1, 15, 15, 0, 0xff);
if (ret) if (ret)
goto error_disp; goto error_disp;
ret = set_clos_param(i, 2, 15, 0, 0, 0xff); ret = set_clos_param(i, 2, 15, 15, 0, 0xff);
if (ret) if (ret)
goto error_disp; goto error_disp;
ret = set_clos_param(i, 3, 15, 0, 0, 0xff); ret = set_clos_param(i, 3, 15, 15, 0, 0xff);
if (ret) if (ret)
goto error_disp; goto error_disp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册