]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - mm/mmu_context.c
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / mm / mmu_context.c
index 6f4d27c5bb325f6468461b17cd8800cc1e473308..5cd25c745a8ff40bc99d78905b5371768bbda469 100644 (file)
@@ -23,6 +23,7 @@ void use_mm(struct mm_struct *mm)
        struct task_struct *tsk = current;
 
        task_lock(tsk);
+       preempt_disable_rt();
        active_mm = tsk->active_mm;
        if (active_mm != mm) {
                atomic_inc(&mm->mm_count);
@@ -30,6 +31,7 @@ void use_mm(struct mm_struct *mm)
        }
        tsk->mm = mm;
        switch_mm(active_mm, mm, tsk);
+       preempt_enable_rt();
        task_unlock(tsk);
 #ifdef finish_arch_post_lock_switch
        finish_arch_post_lock_switch();