On 02/20, Oleg Nesterov wrote:
On 02/20, Lan Tianyu wrote:
@@ -1096,7 +1112,6 @@ int acpi_processor_set_throttling(struct acpi_processor *pr,
return -ENODEV;
}
- cpumask_copy(saved_mask, ¤t->cpus_allowed);
Yes, but the patch forgets to kill alloc_cpumask_var(&saved_mask)
and saved_mask itself ;
And it seems that acpi_processor_set_throttling() doesn't need
online_throttling_cpus at all. It could use
for_each_cpu_and(cpu_online_mask, p_throttling->shared_cpu_map).
Oleg.