aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index b46131ef6aab..4b0739c9558e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4692,8 +4692,10 @@ void idle_task_exit(void)
4692 4692
4693 BUG_ON(cpu_online(smp_processor_id())); 4693 BUG_ON(cpu_online(smp_processor_id()));
4694 4694
4695 if (mm != &init_mm) 4695 if (mm != &init_mm) {
4696 switch_mm(mm, &init_mm, current); 4696 switch_mm(mm, &init_mm, current);
4697 finish_arch_post_lock_switch();
4698 }
4697 mmdrop(mm); 4699 mmdrop(mm);
4698} 4700}
4699 4701