[PATCH v7 17/16] arm64: hibernate: Refuse to hibernate if the boot cpu is offline

Catalin Marinas catalin.marinas at arm.com
Fri Apr 22 03:41:50 PDT 2016


On Wed, Apr 13, 2016 at 05:31:50PM +0100, James Morse wrote:
> It is important to hibernate/resume on the same CPU, otherwise we may
> change the cpu order or restore a big cpu's register state on a little
> cpu.
> 
> We know cpu 0 is the cpu the firmware booted us on last time, refuse to
> hibernate if it has been hotplugged out. Follow x86's example by registering
> a pm notifier that is called before processes are frozen and devices are
> stopped.
> 
> Signed-off-by: James Morse <james.morse at arm.com>

I think for the time being we should just go ahead with this patch (with
Lorenzo's suggestion for the commit log):

Acked-by: Catalin Marinas <catalin.marinas at arm.com>

Subsequently we could look at what Mark suggested on using MPIDR to
hibernate/resume on CPU other than 0.

-- 
Catalin



More information about the linux-arm-kernel mailing list