summaryrefslogtreecommitdiff
path: root/arch/arm64/Kconfig.debug
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2016-08-17 12:50:26 (GMT)
committerWill Deacon <will.deacon@arm.com>2016-08-26 10:21:25 (GMT)
commit8ec058fd2710da1df463c19a4e0ee55ac4530f09 (patch)
tree6a51a11935fd0741b4bad360432a79a6953d89be /arch/arm64/Kconfig.debug
parentd391e552293399396c131544f5b1c2f9b1fb0baa (diff)
downloadlinux-8ec058fd2710da1df463c19a4e0ee55ac4530f09.tar.xz
arm64: hibernate: Resume when hibernate image created on non-boot CPU
disable_nonboot_cpus() assumes that the lowest numbered online CPU is the boot CPU, and that this is the correct CPU to run any power management code on. On arm64 CPU0 can be taken offline. For hibernate/resume this means we may hibernate on a CPU other than CPU0. If the system is rebooted with kexec 'CPU0' will be assigned to a different CPU. This complicates hibernate/resume as now we can't trust the CPU numbers. We currently forbid hibernate if CPU0 has been hotplugged out to avoid this situation without kexec. Save the MPIDR of the CPU we hibernated on in the hibernate arch-header, use hibernate_resume_nonboot_cpu_disable() to direct which CPU we should resume on based on the MPIDR of the CPU we hibernated on. This allows us to hibernate/resume on any CPU, even if the logical numbers have been shuffled by kexec. Signed-off-by: James Morse <james.morse@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions