aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/swsusp.c
diff options
context:
space:
mode:
authorGravatar Tang Yuantian <B29983@freescale.com> 2011-08-16 19:51:33 +0000
committerGravatar Benjamin Herrenschmidt <benh@kernel.crashing.org> 2011-09-20 09:19:58 +1000
commit0330581ab3b9002d55ee66f377ccbbb742175c01 (patch)
treef6c75c875b3c16371c24c5bba0e519b52a4f5e68 /arch/powerpc/kernel/swsusp.c
parentpowerpc/4xx/pci: Add __init annotations for *init_port_hw() functions. (diff)
downloadlinux-0330581ab3b9002d55ee66f377ccbbb742175c01.tar.gz
linux-0330581ab3b9002d55ee66f377ccbbb742175c01.tar.bz2
linux-0330581ab3b9002d55ee66f377ccbbb742175c01.zip
powerpc/mm: Fix the call trace when resumed from hibernation
In SMP mode, the kernel would produce call trace when resumed from hibernation. The reason is when the function destroy_context is called to drop the resuming mm context, the mm->context.active is 1 which is wrong and should be zero. We pass the current->active_mm as previous mm context to function switch_mmu_context to decrease the context.active by 1. In UP mode, there is no effect. Signed-off-by: Tang Yuantian <b29983@freescale.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/swsusp.c')
-rw-r--r--arch/powerpc/kernel/swsusp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c
index aa17b76dd427..641f9adc6205 100644
--- a/arch/powerpc/kernel/swsusp.c
+++ b/arch/powerpc/kernel/swsusp.c
@@ -33,6 +33,6 @@ void save_processor_state(void)
void restore_processor_state(void)
{
#ifdef CONFIG_PPC32
- switch_mmu_context(NULL, current->active_mm);
+ switch_mmu_context(current->active_mm, current->active_mm);
#endif
}