Browse Source

[MIPS] SMP: Fix use of cpumasks.

Noticed by Nick Piggin <nickpiggin@yahoo.com.au>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 17 years ago
parent
commit
ece8a9e4f0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      arch/mips/kernel/smp.c

+ 3 - 3
arch/mips/kernel/smp.c

@@ -379,7 +379,7 @@ void flush_tlb_mm(struct mm_struct *mm)
 		unsigned int cpu;
 		unsigned int cpu;
 
 
 		cpu_clear(smp_processor_id(), mask);
 		cpu_clear(smp_processor_id(), mask);
-		for_each_online_cpu(cpu)
+		for_each_cpu_mask(cpu, mask)
 			if (cpu_context(cpu, mm))
 			if (cpu_context(cpu, mm))
 				cpu_context(cpu, mm) = 0;
 				cpu_context(cpu, mm) = 0;
 	}
 	}
@@ -419,7 +419,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned l
 		unsigned int cpu;
 		unsigned int cpu;
 
 
 		cpu_clear(smp_processor_id(), mask);
 		cpu_clear(smp_processor_id(), mask);
-		for_each_online_cpu(cpu)
+		for_each_cpu_mask(cpu, mask)
 			if (cpu_context(cpu, mm))
 			if (cpu_context(cpu, mm))
 				cpu_context(cpu, mm) = 0;
 				cpu_context(cpu, mm) = 0;
 	}
 	}
@@ -466,7 +466,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
 		unsigned int cpu;
 		unsigned int cpu;
 
 
 		cpu_clear(smp_processor_id(), mask);
 		cpu_clear(smp_processor_id(), mask);
-		for_each_online_cpu(cpu)
+		for_each_cpu_mask(cpu, mask)
 			if (cpu_context(cpu, vma->vm_mm))
 			if (cpu_context(cpu, vma->vm_mm))
 				cpu_context(cpu, vma->vm_mm) = 0;
 				cpu_context(cpu, vma->vm_mm) = 0;
 	}
 	}