mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
padata: Fix cpu hotplug
We don't remove the cpu that went offline from our cpumasks on cpu hotplug. This got lost somewhere along the line, so restore it. This fixes a hang of the padata instance on cpu hotplug. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
13614e0fb1
commit
9612090527
1 changed files with 3 additions and 0 deletions
|
@ -748,6 +748,9 @@ static int __padata_remove_cpu(struct padata_instance *pinst, int cpu)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
padata_replace(pinst, pd);
|
padata_replace(pinst, pd);
|
||||||
|
|
||||||
|
cpumask_clear_cpu(cpu, pd->cpumask.cbcpu);
|
||||||
|
cpumask_clear_cpu(cpu, pd->cpumask.pcpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue