Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6affb482 authored by Will Deacon's avatar Will Deacon Committed by Stephen Warren
Browse files

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: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 7e564744
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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 */