arm64: kernel: suspend/resume registers save/restore
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 17 Jul 2013 09:14:45 +0000 (10:14 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Dec 2013 17:17:31 +0000 (17:17 +0000)
commit6732bc65c277b697f6d8b645b15f63d1558c0cc4
tree3fec2f68e25807aea9f814520541211cc8ff979a
parent976d7d3f79a997b223f2ed8eabef7e12e469b5cf
arm64: kernel: suspend/resume registers save/restore

Power management software requires the kernel to save and restore
CPU registers while going through suspend and resume operations
triggered by kernel subsystems like CPU idle and suspend to RAM.

This patch implements code that provides save and restore mechanism
for the arm v8 implementation. Memory for the context is passed as
parameter to both cpu_do_suspend and cpu_do_resume functions, and allows
the callers to implement context allocation as they deem fit.

The registers that are saved and restored correspond to the registers set
actually required by the kernel to be up and running which represents a
subset of v8 ISA.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm64/include/asm/proc-fns.h
arch/arm64/include/asm/suspend.h [new file with mode: 0644]
arch/arm64/mm/proc.S