diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-12 10:03:38 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-12 19:53:01 -0400 |
commit | ece8a9e4f011b038396c7649a8407ca9171be4a9 (patch) | |
tree | e839ad4f6b6edd11d9f4ca45c7af0fa740303ead | |
parent | 6f1ca1d2869814711bcf983cfc0803cfd0b29f27 (diff) |
[MIPS] SMP: Fix use of cpumasks.
Noticed by Nick Piggin <nickpiggin@yahoo.com.au>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/smp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 432f2e376aea..63989e9df4f9 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c | |||
@@ -379,7 +379,7 @@ void flush_tlb_mm(struct mm_struct *mm) | |||
379 | unsigned int cpu; | 379 | unsigned int cpu; |
380 | 380 | ||
381 | cpu_clear(smp_processor_id(), mask); | 381 | cpu_clear(smp_processor_id(), mask); |
382 | for_each_online_cpu(cpu) | 382 | for_each_cpu_mask(cpu, mask) |
383 | if (cpu_context(cpu, mm)) | 383 | if (cpu_context(cpu, mm)) |
384 | cpu_context(cpu, mm) = 0; | 384 | cpu_context(cpu, mm) = 0; |
385 | } | 385 | } |
@@ -419,7 +419,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned l | |||
419 | unsigned int cpu; | 419 | unsigned int cpu; |
420 | 420 | ||
421 | cpu_clear(smp_processor_id(), mask); | 421 | cpu_clear(smp_processor_id(), mask); |
422 | for_each_online_cpu(cpu) | 422 | for_each_cpu_mask(cpu, mask) |
423 | if (cpu_context(cpu, mm)) | 423 | if (cpu_context(cpu, mm)) |
424 | cpu_context(cpu, mm) = 0; | 424 | cpu_context(cpu, mm) = 0; |
425 | } | 425 | } |
@@ -466,7 +466,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long page) | |||
466 | unsigned int cpu; | 466 | unsigned int cpu; |
467 | 467 | ||
468 | cpu_clear(smp_processor_id(), mask); | 468 | cpu_clear(smp_processor_id(), mask); |
469 | for_each_online_cpu(cpu) | 469 | for_each_cpu_mask(cpu, mask) |
470 | if (cpu_context(cpu, vma->vm_mm)) | 470 | if (cpu_context(cpu, vma->vm_mm)) |
471 | cpu_context(cpu, vma->vm_mm) = 0; | 471 | cpu_context(cpu, vma->vm_mm) = 0; |
472 | } | 472 | } |