tools/power/x86/intel-speed-select: Prevent cpu clos config for non-cpu power domain
Non-cpu power domain does not support cpu clos config. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
Родитель
2e54ba89ec
Коммит
443bf104ef
|
@ -2077,6 +2077,9 @@ static void dump_clos_config_for_cpu(struct isst_id *id, void *arg1, void *arg2,
|
|||
struct isst_clos_config clos_config;
|
||||
int ret;
|
||||
|
||||
if (id->cpu < 0)
|
||||
return;
|
||||
|
||||
ret = isst_pm_get_clos(id, current_clos, &clos_config);
|
||||
if (ret)
|
||||
isst_display_error_info_message(1, "isst_pm_get_clos failed", 0, 0);
|
||||
|
@ -2153,6 +2156,9 @@ static void set_clos_config_for_cpu(struct isst_id *id, void *arg1, void *arg2,
|
|||
struct isst_clos_config clos_config;
|
||||
int ret;
|
||||
|
||||
if (id->cpu < 0)
|
||||
return;
|
||||
|
||||
clos_config.epp = clos_epp;
|
||||
clos_config.clos_prop_prio = clos_prop_prio;
|
||||
clos_config.clos_min = clos_min;
|
||||
|
|
Загрузка…
Ссылка в новой задаче