if (cpu_up(cpu) != 0)
pr_err("Jailhouse: failed to bring CPU %d back "
"online\n", cpu);
- cpu_clear(cpu, offlined_cpus);
+ cpumask_clear_cpu(cpu, &offlined_cpus);
}
}
err = cpu_down(cpu);
if (err)
goto error_cpu_online;
- cpu_set(cpu, offlined_cpus);
+ cpumask_set_cpu(cpu, &offlined_cpus);
}
- cpu_clear(cpu, root_cell->cpus_assigned);
+ cpumask_clear_cpu(cpu, &root_cell->cpus_assigned);
}
id = jailhouse_call_arg1(JAILHOUSE_HC_CELL_CREATE, __pa(config));
error_cpu_online:
for_each_cpu(cpu, &cell->cpus_assigned) {
if (!cpu_online(cpu) && cpu_up(cpu) == 0)
- cpu_clear(cpu, offlined_cpus);
- cpu_set(cpu, root_cell->cpus_assigned);
+ cpumask_clear_cpu(cpu, &offlined_cpus);
+ cpumask_set_cpu(cpu, &root_cell->cpus_assigned);
}
error_cell_delete:
goto unlock_out;
for_each_cpu(cpu, &cell->cpus_assigned) {
- if (cpu_isset(cpu, offlined_cpus)) {
+ if (cpumask_test_cpu(cpu, &offlined_cpus)) {
if (cpu_up(cpu) != 0)
pr_err("Jailhouse: failed to bring CPU %d "
"back online\n", cpu);
- cpu_clear(cpu, offlined_cpus);
+ cpumask_clear_cpu(cpu, &offlined_cpus);
}
- cpu_set(cpu, root_cell->cpus_assigned);
+ cpumask_set_cpu(cpu, &root_cell->cpus_assigned);
}
pr_info("Destroyed Jailhouse cell \"%s\"\n",
if (jailhouse_call_arg2(JAILHOUSE_HC_CPU_GET_INFO, cpu,
JAILHOUSE_CPU_INFO_STATE) ==
JAILHOUSE_CPU_FAILED)
- cpu_set(cpu, *cpus_failed);
+ cpumask_set_cpu(cpu, cpus_failed);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0)
written = scnprintf(buf, PAGE_SIZE, "%*pb\n",