diff options
-rw-r--r-- | arch/s390/include/asm/mmu_context.h | 2 | ||||
-rw-r--r-- | arch/s390/include/asm/tlbflush.h | 4 | ||||
-rw-r--r-- | arch/s390/mm/pgtable.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h index 28ec870655af..fc7edd6f41b6 100644 --- a/arch/s390/include/asm/mmu_context.h +++ b/arch/s390/include/asm/mmu_context.h | |||
@@ -74,7 +74,7 @@ static inline void update_mm(struct mm_struct *mm, struct task_struct *tsk) | |||
74 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | 74 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |
75 | struct task_struct *tsk) | 75 | struct task_struct *tsk) |
76 | { | 76 | { |
77 | cpu_set(smp_processor_id(), next->cpu_vm_mask); | 77 | cpumask_set_cpu(smp_processor_id(), mm_cpumask(next)); |
78 | update_mm(next, tsk); | 78 | update_mm(next, tsk); |
79 | } | 79 | } |
80 | 80 | ||
diff --git a/arch/s390/include/asm/tlbflush.h b/arch/s390/include/asm/tlbflush.h index d60394b9745e..304cffa623e1 100644 --- a/arch/s390/include/asm/tlbflush.h +++ b/arch/s390/include/asm/tlbflush.h | |||
@@ -51,7 +51,7 @@ static inline void __tlb_flush_full(struct mm_struct *mm) | |||
51 | * If the process only ran on the local cpu, do a local flush. | 51 | * If the process only ran on the local cpu, do a local flush. |
52 | */ | 52 | */ |
53 | local_cpumask = cpumask_of_cpu(smp_processor_id()); | 53 | local_cpumask = cpumask_of_cpu(smp_processor_id()); |
54 | if (cpus_equal(mm->cpu_vm_mask, local_cpumask)) | 54 | if (cpumask_equal(mm_cpumask(mm), &local_cpumask)) |
55 | __tlb_flush_local(); | 55 | __tlb_flush_local(); |
56 | else | 56 | else |
57 | __tlb_flush_global(); | 57 | __tlb_flush_global(); |
@@ -73,7 +73,7 @@ static inline void __tlb_flush_idte(unsigned long asce) | |||
73 | 73 | ||
74 | static inline void __tlb_flush_mm(struct mm_struct * mm) | 74 | static inline void __tlb_flush_mm(struct mm_struct * mm) |
75 | { | 75 | { |
76 | if (unlikely(cpus_empty(mm->cpu_vm_mask))) | 76 | if (unlikely(cpumask_empty(mm_cpumask(mm)))) |
77 | return; | 77 | return; |
78 | /* | 78 | /* |
79 | * If the machine has IDTE we prefer to do a per mm flush | 79 | * If the machine has IDTE we prefer to do a per mm flush |
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index 9bf86125f6f3..be6c1cf4ad5a 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c | |||
@@ -296,7 +296,7 @@ int s390_enable_sie(void) | |||
296 | tsk->mm = tsk->active_mm = mm; | 296 | tsk->mm = tsk->active_mm = mm; |
297 | preempt_disable(); | 297 | preempt_disable(); |
298 | update_mm(mm, tsk); | 298 | update_mm(mm, tsk); |
299 | cpu_set(smp_processor_id(), mm->cpu_vm_mask); | 299 | cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); |
300 | preempt_enable(); | 300 | preempt_enable(); |
301 | task_unlock(tsk); | 301 | task_unlock(tsk); |
302 | mmput(old_mm); | 302 | mmput(old_mm); |