diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-10-26 11:17:44 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-02-21 02:50:17 -0500 |
commit | a53efe5ff88d0283bae8a2c2fa066d0fff31dc91 (patch) | |
tree | 8b500f9df4ad79e7159ad08ec8231278166eb499 /mm/mmu_context.c | |
parent | 56f15e518cfdc732bd4e4da90e0c9cf2fc4e7c1b (diff) |
sched/mm: call finish_arch_post_lock_switch in idle_task_exit and use_mm
The finish_arch_post_lock_switch is called at the end of the task
switch after all locks have been released. In concept it is paired
with the switch_mm function, but the current code only does the
call in finish_task_switch. Add the call to idle_task_exit and
use_mm. One use case for the additional calls is s390 which will
use finish_arch_post_lock_switch to wait for the completion of
TLB flush operations.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'mm/mmu_context.c')
-rw-r--r-- | mm/mmu_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/mmu_context.c b/mm/mmu_context.c index 8a8cd0265e52..f802c2d216a7 100644 --- a/mm/mmu_context.c +++ b/mm/mmu_context.c | |||
@@ -31,6 +31,9 @@ void use_mm(struct mm_struct *mm) | |||
31 | tsk->mm = mm; | 31 | tsk->mm = mm; |
32 | switch_mm(active_mm, mm, tsk); | 32 | switch_mm(active_mm, mm, tsk); |
33 | task_unlock(tsk); | 33 | task_unlock(tsk); |
34 | #ifdef finish_arch_post_lock_switch | ||
35 | finish_arch_post_lock_switch(); | ||
36 | #endif | ||
34 | 37 | ||
35 | if (active_mm != mm) | 38 | if (active_mm != mm) |
36 | mmdrop(active_mm); | 39 | mmdrop(active_mm); |