aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/metag/kernel/smp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/metag/kernel/smp.c b/arch/metag/kernel/smp.c
index 86fdda4a85c4..b81351538c48 100644
--- a/arch/metag/kernel/smp.c
+++ b/arch/metag/kernel/smp.c
@@ -276,7 +276,6 @@ static DECLARE_COMPLETION(cpu_killed);
276int __cpuexit __cpu_disable(void) 276int __cpuexit __cpu_disable(void)
277{ 277{
278 unsigned int cpu = smp_processor_id(); 278 unsigned int cpu = smp_processor_id();
279 struct task_struct *p;
280 279
281 /* 280 /*
282 * Take this CPU offline. Once we clear this, we can't return, 281 * Take this CPU offline. Once we clear this, we can't return,
@@ -296,12 +295,7 @@ int __cpuexit __cpu_disable(void)
296 flush_cache_all(); 295 flush_cache_all();
297 local_flush_tlb_all(); 296 local_flush_tlb_all();
298 297
299 read_lock(&tasklist_lock); 298 clear_tasks_mm_cpumask(cpu);
300 for_each_process(p) {
301 if (p->mm)
302 cpumask_clear_cpu(cpu, mm_cpumask(p->mm));
303 }
304 read_unlock(&tasklist_lock);
305 299
306 return 0; 300 return 0;
307} 301}