[PATCH v8 06/13] arm64: kernel: Rework finisher callback out of __cpu_suspend_enter()
Catalin Marinas
catalin.marinas at arm.com
Tue Apr 26 03:44:28 PDT 2016
On Mon, Apr 25, 2016 at 06:10:43PM +0100, James Morse wrote:
> Hibernate could make use of the cpu_suspend() code to save/restore cpu
> state, however it needs to be able to return '0' from the 'finisher'.
>
> Rework cpu_suspend() so that the finisher is called from C code,
> independently from the save/restore of cpu state. Space to save the context
> in is allocated in the caller's stack frame, and passed into
> __cpu_suspend_enter().
>
> Hibernate's use of this API will look like a copy of the cpu_suspend()
> function.
>
> Signed-off-by: James Morse <james.morse at arm.com>
> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
With the push/pop macros gone:
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list