ARM: use virt_to_idmap() for soft_restart()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 11 Jan 2016 17:03:54 +0000 (17:03 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 8 Feb 2016 15:48:32 +0000 (15:48 +0000)
commit4138323eac0b485316e54ad9ce241bac24ddd175
tree1a9cd8c95fe1ad0c5e54abf34f1b2c264401bbc8
parent2841029393fad551b49b6de34d44bfa9ef256441
ARM: use virt_to_idmap() for soft_restart()

Code run via soft_restart() is run with the MMU disabled, so we need to
pass the identity map physical address rather than the address obtained
from virt_to_phys().  Therefore, replace virt_to_phys() with
virt_to_idmap() for all callers of soft_restart().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/hibernate.c
arch/arm/kernel/machine_kexec.c