diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-08-16 07:31:40 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-08-22 06:20:09 -0400 |
commit | 5c474a1e2265c5156e6c63f87a7e99053039b8b9 (patch) | |
tree | a50c365553dbaf2c3d97c8a0dbca8c94cec34e9f /arch/s390/include/asm/mmu_context.h | |
parent | b6bed093f489ef0a858e63eebcf5f2fb71ed3222 (diff) |
s390/mm: introduce ptep_flush_lazy helper
Isolate the logic of IDTE vs. IPTE flushing of ptes in two functions,
ptep_flush_lazy and __tlb_flush_mm_lazy.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/mmu_context.h')
-rw-r--r-- | arch/s390/include/asm/mmu_context.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h index 084e7755ed9b..7b7fce4e8469 100644 --- a/arch/s390/include/asm/mmu_context.h +++ b/arch/s390/include/asm/mmu_context.h | |||
@@ -77,8 +77,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | |||
77 | WARN_ON(atomic_read(&prev->context.attach_count) < 0); | 77 | WARN_ON(atomic_read(&prev->context.attach_count) < 0); |
78 | atomic_inc(&next->context.attach_count); | 78 | atomic_inc(&next->context.attach_count); |
79 | /* Check for TLBs not flushed yet */ | 79 | /* Check for TLBs not flushed yet */ |
80 | if (next->context.flush_mm) | 80 | __tlb_flush_mm_lazy(next); |
81 | __tlb_flush_mm(next); | ||
82 | } | 81 | } |
83 | 82 | ||
84 | #define enter_lazy_tlb(mm,tsk) do { } while (0) | 83 | #define enter_lazy_tlb(mm,tsk) do { } while (0) |