|
@@ -333,9 +333,7 @@ static int __cpuinit mmu_context_cpu_notify(struct notifier_block *self,
|
|
|
unsigned long action, void *hcpu)
|
|
|
{
|
|
|
unsigned int cpu = (unsigned int)(long)hcpu;
|
|
|
-#ifdef CONFIG_HOTPLUG_CPU
|
|
|
- struct task_struct *p;
|
|
|
-#endif
|
|
|
+
|
|
|
/* We don't touch CPU 0 map, it's allocated at aboot and kept
|
|
|
* around forever
|
|
|
*/
|
|
@@ -358,12 +356,7 @@ static int __cpuinit mmu_context_cpu_notify(struct notifier_block *self,
|
|
|
stale_map[cpu] = NULL;
|
|
|
|
|
|
/* We also clear the cpu_vm_mask bits of CPUs going away */
|
|
|
- read_lock(&tasklist_lock);
|
|
|
- for_each_process(p) {
|
|
|
- if (p->mm)
|
|
|
- cpumask_clear_cpu(cpu, mm_cpumask(p->mm));
|
|
|
- }
|
|
|
- read_unlock(&tasklist_lock);
|
|
|
+ clear_tasks_mm_cpumask(cpu);
|
|
|
break;
|
|
|
#endif /* CONFIG_HOTPLUG_CPU */
|
|
|
}
|