]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: drop sleep_idmap_phys and clean up cpu_resume()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 1 Jun 2015 11:40:34 +0000 (13:40 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 2 Jun 2015 16:45:07 +0000 (17:45 +0100)
commitc81f2759d9e65d7025677a2a18aba3d0d0b43088
tree095abac6f030e321258b85eb7edd61e34be033ec
parent4cd73aec56acd965398062a7e4b90a6786a302c2
arm64: drop sleep_idmap_phys and clean up cpu_resume()

Two cleanups of the asm function cpu_resume():
- The global variable sleep_idmap_phys always points to idmap_pg_dir,
  so we can just use that value directly in the CPU resume path.
- Unclutter the load of sleep_save_sp::save_ptr_stash_phys.

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/sleep.S
arch/arm64/kernel/suspend.c