ARM: suspend: use idmap_pgd instead of suspend_pgd
authorWill Deacon <will.deacon@arm.com>
Tue, 15 Nov 2011 11:11:19 +0000 (11:11 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 17:48:36 +0000 (19:48 +0200)
commit8fe2907e801cb9bdc6e34e81a7bf62f9f1c3b46f
tree700c55a82d1c270ac6c24bd5500177b05ed9745f
parentfa96bf8132e60fb557f8a3b4e121af661a8b686c
ARM: suspend: use idmap_pgd instead of suspend_pgd

The ARM CPU suspend code requires cpu_resume_mmu to be identity mapped
in order to re-enable the MMU when coming out of suspend. Currently,
this is accomplished by maintaining a suspend_pgd with the relevant
mapping put in place at init time.

This patch replaces the use of suspend_pgd with the new idmap_pgd.
cpu_resume_mmu is placed in the .idmap.text section so that it is
included in the identity map.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Dave Martin <dave.martin@linaro.org>
Tested-by: Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/sleep.S
arch/arm/kernel/suspend.c