diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v32/kernel/smp.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v32/mm/tlb.c | 2 |
2 files changed, 4 insertions, 4 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, |
diff --git a/arch/cris/arch-v32/mm/tlb.c b/arch/cris/arch-v32/mm/tlb.c index 55ade36fe8a8..6779bcb28ab0 100644 --- a/arch/cris/arch-v32/mm/tlb.c +++ b/arch/cris/arch-v32/mm/tlb.c | |||
@@ -185,7 +185,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, | |||
185 | /* Make sure there is a MMU context. */ | 185 | /* Make sure there is a MMU context. */ |
186 | spin_lock(&mmu_context_lock); | 186 | spin_lock(&mmu_context_lock); |
187 | get_mmu_context(next); | 187 | get_mmu_context(next); |
188 | cpu_set(cpu, next->cpu_vm_mask); | 188 | cpumask_set_cpu(cpu, mm_cpumask(next)); |
189 | spin_unlock(&mmu_context_lock); | 189 | spin_unlock(&mmu_context_lock); |
190 | 190 | ||
191 | /* | 191 | /* |