mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
tools/power/x86/intel-speed-select: Ignore -o option processing on error
When for some reason, CONFIG_TDP_GET_CORE_MASK mailbox command fails, then don't continue online/offline operation for perf-profile set-config-level with "-o" option. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
b1d12cef7c
commit
6374de8489
1 changed files with 5 additions and 1 deletions
|
@ -1247,7 +1247,11 @@ static void set_tdp_level_for_cpu(int cpu, void *arg1, void *arg2, void *arg3,
|
|||
fprintf(stderr, "Option is set to online/offline\n");
|
||||
ctdp_level.core_cpumask_size =
|
||||
alloc_cpu_set(&ctdp_level.core_cpumask);
|
||||
isst_get_coremask_info(cpu, tdp_level, &ctdp_level);
|
||||
ret = isst_get_coremask_info(cpu, tdp_level, &ctdp_level);
|
||||
if (ret) {
|
||||
isst_display_error_info_message(1, "Can't get coremask, online/offline option is ignored", 0, 0);
|
||||
return;
|
||||
}
|
||||
if (ctdp_level.cpu_count) {
|
||||
int i, max_cpus = get_topo_max_cpus();
|
||||
for (i = 0; i < max_cpus; ++i) {
|
||||
|
|
Loading…
Reference in a new issue