diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-15 23:41:47 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-15 23:41:47 -0400 |
commit | b9d65c04773850ff3a82f69d43981be650e658a1 (patch) | |
tree | 197a6a02a13b0a51470a85c5fd91160a42a621fa /arch/cris/arch-v32/kernel | |
parent | afc6ca01f6da831ff09f4dabdef3b50f114e9e1e (diff) |
cpumask: use mm_cpumask() wrapper: cris
Makes code futureproof against the impending change to mm->cpu_vm_mask.
It's also a chance to use the new cpumask_ ops which take a pointer
(the older ones are deprecated, but there's no hurry for arch code).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/cris/arch-v32/kernel')
-rw-r--r-- | arch/cris/arch-v32/kernel/smp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/cris/arch-v32/kernel/smp.c b/arch/cris/arch-v32/kernel/smp.c index b47764c3308f..dc31b04d0827 100644 --- a/arch/cris/arch-v32/kernel/smp.c +++ b/arch/cris/arch-v32/kernel/smp.c | |||
@@ -232,7 +232,7 @@ void flush_tlb_common(struct mm_struct* mm, struct vm_area_struct* vma, unsigned | |||
232 | cpumask_t cpu_mask; | 232 | cpumask_t cpu_mask; |
233 | 233 | ||
234 | spin_lock_irqsave(&tlbstate_lock, flags); | 234 | spin_lock_irqsave(&tlbstate_lock, flags); |
235 | cpu_mask = (mm == FLUSH_ALL ? CPU_MASK_ALL : mm->cpu_vm_mask); | 235 | cpu_mask = (mm == FLUSH_ALL ? cpu_all_mask : *mm_cpumask(mm)); |
236 | cpu_clear(smp_processor_id(), cpu_mask); | 236 | cpu_clear(smp_processor_id(), cpu_mask); |
237 | flush_mm = mm; | 237 | flush_mm = mm; |
238 | flush_vma = vma; | 238 | flush_vma = vma; |
@@ -252,8 +252,8 @@ void flush_tlb_mm(struct mm_struct *mm) | |||
252 | __flush_tlb_mm(mm); | 252 | __flush_tlb_mm(mm); |
253 | flush_tlb_common(mm, FLUSH_ALL, 0); | 253 | flush_tlb_common(mm, FLUSH_ALL, 0); |
254 | /* No more mappings in other CPUs */ | 254 | /* No more mappings in other CPUs */ |
255 | cpus_clear(mm->cpu_vm_mask); | 255 | cpumask_clear(mm_cpumask(mm)); |
256 | cpu_set(smp_processor_id(), mm->cpu_vm_mask); | 256 | cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); |
257 | } | 257 | } |
258 | 258 | ||
259 | void flush_tlb_page(struct vm_area_struct *vma, | 259 | void flush_tlb_page(struct vm_area_struct *vma, |