From: Will Deacon Date: Mon, 25 Mar 2013 18:19:11 +0000 (+0000) Subject: ARM: tegra: use setup_mm_for_reboot rather than explicit pgd switch X-Git-Tag: v3.10-rc1~125^2~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6affb4826405dc1f53bae0e5c302a18f734a44ca;p=platform%2Fkernel%2Flinux-3.10.git ARM: tegra: use setup_mm_for_reboot rather than explicit pgd switch This patch changes the Tegra PM code to use the setup_mm_for_reboot helper rather than call cpu_switch_mm directly. This keeps things like TLB invalidation in one place. Cc: Stephen Warren Signed-off-by: Will Deacon Signed-off-by: Stephen Warren --- diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c index 0494f73..acacbe8 100644 --- a/arch/arm/mach-tegra/pm.c +++ b/arch/arm/mach-tegra/pm.c @@ -164,12 +164,7 @@ bool tegra_set_cpu_in_lp2(int phy_cpu_id) static int tegra_sleep_cpu(unsigned long v2p) { - /* Switch to the identity mapping. */ - cpu_switch_mm(idmap_pgd, &init_mm); - - /* Flush the TLB. */ - local_flush_tlb_all(); - + setup_mm_for_reboot(); tegra_sleep_cpu_finish(v2p); /* should never here */