arm64: Save and restore OSDLR_EL1 across suspend/resume
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Mon, 8 Apr 2019 17:17:19 +0000 (18:17 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 11:39:13 +0000 (12:39 +0100)
commit827a108e354db633698f0b4a10c1ffd2b1f8d1d0
tree2931dfa38b16416f454d9091cbd8c4ff0d9b081e
parent6fda41bf12615ee7c3ddac88155099b1a8cf8d00
arm64: Save and restore OSDLR_EL1 across suspend/resume

When the CPU comes out of suspend, the firmware may have modified the OS
Double Lock Register. Save it in an unused slot of cpu_suspend_ctx, and
restore it on resume.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/proc.S