]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] cpumask: use mm_cpumask() wrapper
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Mar 2009 14:25:01 +0000 (15:25 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:34 +0000 (15:24 +0100)
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: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/mmu_context.h
arch/s390/include/asm/tlbflush.h
arch/s390/mm/pgtable.c

index 28ec870655af01fba9750fbc1d9e3105f41579fc..fc7edd6f41b6c736382df3339434caeb4b6da5d7 100644 (file)
@@ -74,7 +74,7 @@ static inline void update_mm(struct mm_struct *mm, struct task_struct *tsk)
 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
                             struct task_struct *tsk)
 {
-       cpu_set(smp_processor_id(), next->cpu_vm_mask);
+       cpumask_set_cpu(smp_processor_id(), mm_cpumask(next));
        update_mm(next, tsk);
 }
 
index d60394b9745ef60387ad385013f18f23d622980c..304cffa623e158041e128c738999abbed1d3aa5b 100644 (file)
@@ -51,7 +51,7 @@ static inline void __tlb_flush_full(struct mm_struct *mm)
         * If the process only ran on the local cpu, do a local flush.
         */
        local_cpumask = cpumask_of_cpu(smp_processor_id());
-       if (cpus_equal(mm->cpu_vm_mask, local_cpumask))
+       if (cpumask_equal(mm_cpumask(mm), &local_cpumask))
                __tlb_flush_local();
        else
                __tlb_flush_global();
@@ -73,7 +73,7 @@ static inline void __tlb_flush_idte(unsigned long asce)
 
 static inline void __tlb_flush_mm(struct mm_struct * mm)
 {
-       if (unlikely(cpus_empty(mm->cpu_vm_mask)))
+       if (unlikely(cpumask_empty(mm_cpumask(mm))))
                return;
        /*
         * If the machine has IDTE we prefer to do a per mm flush
index 9bf86125f6f3fdb7f1f51b7155d8cadc3ef113ff..be6c1cf4ad5ae8922f039ab2100b2e50183553f2 100644 (file)
@@ -296,7 +296,7 @@ int s390_enable_sie(void)
        tsk->mm = tsk->active_mm = mm;
        preempt_disable();
        update_mm(mm, tsk);
-       cpu_set(smp_processor_id(), mm->cpu_vm_mask);
+       cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm));
        preempt_enable();
        task_unlock(tsk);
        mmput(old_mm);