]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Implement panic_smp_self_stop()
authorAaro Koskinen <aaro.koskinen@nokia.com>
Mon, 17 Jun 2019 20:35:19 +0000 (23:35 +0300)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 25 Jun 2019 15:42:19 +0000 (16:42 +0100)
commit2ea37f329996da93ea8bfa040c258393b06a3d0e
treea792ce714498ab98919c9bcc96d3bf6abc0b0a03
parent73817d79e7a8bacabe8a5ed6e8b8c070ae78ac31
arm64: Implement panic_smp_self_stop()

Currently arm64 uses the default implementation of panic_smp_self_stop()
where the CPU runs in a cpu_relax() loop unable to receive IPIs anymore.
As a result, when two CPUs panic() simultaneously we get "SMP: failed to
stop secondary CPUs" warnings and extra delays before a reset, because
smp_send_stop() still tries to stop the other paniced CPU.

Provide an implementation of panic_smp_self_stop() that is identical to
the IPI CPU stop handler, so that the online status of stopped CPUs gets
properly updated.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/smp.c