diff options
author | Will Deacon <will.deacon@arm.com> | 2013-03-25 14:19:11 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-03-26 16:30:41 -0400 |
commit | 6affb4826405dc1f53bae0e5c302a18f734a44ca (patch) | |
tree | 9f7e2727aef921a458197848017fcdcc73b35c99 /arch/arm/mach-tegra | |
parent | 7e56474456221541aab7b2fe415ff400d7c9910a (diff) |
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 <swarren@wwwdotorg.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/pm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c index 0494f739c95f..acacbe8d1afc 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) | |||
164 | 164 | ||
165 | static int tegra_sleep_cpu(unsigned long v2p) | 165 | static int tegra_sleep_cpu(unsigned long v2p) |
166 | { | 166 | { |
167 | /* Switch to the identity mapping. */ | 167 | setup_mm_for_reboot(); |
168 | cpu_switch_mm(idmap_pgd, &init_mm); | ||
169 | |||
170 | /* Flush the TLB. */ | ||
171 | local_flush_tlb_all(); | ||
172 | |||
173 | tegra_sleep_cpu_finish(v2p); | 168 | tegra_sleep_cpu_finish(v2p); |
174 | 169 | ||
175 | /* should never here */ | 170 | /* should never here */ |