diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-03-15 14:16:43 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-03-23 22:47:29 -0400 |
commit | 56aa4129e87be43676c6e3eac41a6aa553877802 (patch) | |
tree | 51fff04b2393a6e2ae6f6ab2b27126428eec651d /arch/powerpc/mm/tlb_hash64.c | |
parent | f5ac590e79d693d4239997265405535a2e0c36bd (diff) |
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>
Diffstat (limited to 'arch/powerpc/mm/tlb_hash64.c')
-rw-r--r-- | arch/powerpc/mm/tlb_hash64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/mm/tlb_hash64.c b/arch/powerpc/mm/tlb_hash64.c index c931bc7d1079..1be1b5e59796 100644 --- a/arch/powerpc/mm/tlb_hash64.c +++ b/arch/powerpc/mm/tlb_hash64.c | |||
@@ -139,12 +139,12 @@ void hpte_need_flush(struct mm_struct *mm, unsigned long addr, | |||
139 | */ | 139 | */ |
140 | void __flush_tlb_pending(struct ppc64_tlb_batch *batch) | 140 | void __flush_tlb_pending(struct ppc64_tlb_batch *batch) |
141 | { | 141 | { |
142 | cpumask_t tmp; | 142 | const struct cpumask *tmp; |
143 | int i, local = 0; | 143 | int i, local = 0; |
144 | 144 | ||
145 | i = batch->index; | 145 | i = batch->index; |
146 | tmp = cpumask_of_cpu(smp_processor_id()); | 146 | tmp = cpumask_of(smp_processor_id()); |
147 | if (cpus_equal(batch->mm->cpu_vm_mask, tmp)) | 147 | if (cpumask_equal(mm_cpumask(batch->mm), tmp)) |
148 | local = 1; | 148 | local = 1; |
149 | if (i == 1) | 149 | if (i == 1) |
150 | flush_hash_page(batch->vaddr[0], batch->pte[0], | 150 | flush_hash_page(batch->vaddr[0], batch->pte[0], |