Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/alternatives: Let __text_poke() acquire the pte lock with enabled…
… interrupts The pte lock is never acquired from an IRQ-off region so it does not require the interrupts to be disabled. RT complains here because the spinlock_t must not be acquired with disabled interrupts. use_temporary_mm() expects interrupts to be off because it invokes switch_mm_irqs_off() and uses per-CPU (current active mm) data. Move local_irq_save() after the the pte lock has been acquired. Move local_irq_restore() after the pte lock has been released. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
- Loading branch information