]> 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)
commit313fff454408846357f11741c3bdf6ac08998c1e
tree095abac6f030e321258b85eb7edd61e34be033ec
parent3e880060a8fd14e25248a1f7813e246f35a92bca
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