diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2025-04-09 15:01:51 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2025-04-14 11:23:21 +0200 |
| commit | fe20164177be007f490b79db94ed8d65c4e48bb0 (patch) | |
| tree | 0538420364a12b1fba3211a9c2c025c9663db295 /arch/s390/include/asm/mmu_context.h | |
| parent | 8b72f5a97b82185806ff085582ece86ce5b9811e (diff) | |
s390/mm: Select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
Select ARCH_WANT_IRQS_OFF_ACTIVATE_MM so that activate_mm() is called with
irqs disabled. This allows to call switch_mm_irqs_off() instead of
switch_mm() and saves two local_irq_save() / local_irq_restore() pairs.
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/mmu_context.h')
| -rw-r--r-- | arch/s390/include/asm/mmu_context.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h index dabc51511b89..d9b8501bc93d 100644 --- a/arch/s390/include/asm/mmu_context.h +++ b/arch/s390/include/asm/mmu_context.h @@ -124,17 +124,13 @@ static inline void finish_arch_post_lock_switch(void) static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) { - unsigned long flags; - - switch_mm(prev, next, current); + switch_mm_irqs_off(prev, next, current); cpumask_set_cpu(smp_processor_id(), mm_cpumask(next)); - local_irq_save(flags); if (test_thread_flag(TIF_ASCE_PRIMARY)) local_ctl_load(1, &get_lowcore()->kernel_asce); else local_ctl_load(1, &get_lowcore()->user_asce); local_ctl_load(7, &get_lowcore()->user_asce); - local_irq_restore(flags); } #include <asm-generic/mmu_context.h> |
