diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index b40b82e33590..16a1129f51ec 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2845,14 +2845,14 @@ context_switch(struct rq *rq, struct task_struct *prev, | |||
2845 | */ | 2845 | */ |
2846 | arch_start_context_switch(prev); | 2846 | arch_start_context_switch(prev); |
2847 | 2847 | ||
2848 | if (likely(!mm)) { | 2848 | if (!mm) { |
2849 | next->active_mm = oldmm; | 2849 | next->active_mm = oldmm; |
2850 | atomic_inc(&oldmm->mm_count); | 2850 | atomic_inc(&oldmm->mm_count); |
2851 | enter_lazy_tlb(oldmm, next); | 2851 | enter_lazy_tlb(oldmm, next); |
2852 | } else | 2852 | } else |
2853 | switch_mm(oldmm, mm, next); | 2853 | switch_mm(oldmm, mm, next); |
2854 | 2854 | ||
2855 | if (likely(!prev->mm)) { | 2855 | if (!prev->mm) { |
2856 | prev->active_mm = NULL; | 2856 | prev->active_mm = NULL; |
2857 | rq->prev_mm = oldmm; | 2857 | rq->prev_mm = oldmm; |
2858 | } | 2858 | } |