From: Tang Yuantian Date: Tue, 16 Aug 2011 19:51:33 +0000 (+0000) Subject: powerpc/mm: Fix the call trace when resumed from hibernation X-Git-Tag: v3.2-rc1~34^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0330581ab3b9002d55ee66f377ccbbb742175c01;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed