cpumask: Use mm_cpumask() wrapper instead of cpu_vm_mask
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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
f5ac590e79
commit
56aa4129e8
@@ -114,7 +114,7 @@ static inline void mm_needs_global_tlbie(struct mm_struct *mm)
|
||||
int nr = (NR_CPUS > 1) ? NR_CPUS : NR_CPUS + 1;
|
||||
|
||||
/* Global TLBIE broadcast required with SPEs. */
|
||||
__cpus_setall(&mm->cpu_vm_mask, nr);
|
||||
bitmap_fill(cpumask_bits(mm_cpumask(mm)), nr);
|
||||
}
|
||||
|
||||
void spu_associate_mm(struct spu *spu, struct mm_struct *mm)
|
||||
|
||||
Reference in New Issue
Block a user