]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Offline CPU in stop_this_cpu()
authorNicholas Piggin <npiggin@gmail.com>
Wed, 23 Jun 2021 04:12:45 +0000 (14:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Jun 2021 14:07:09 +0000 (00:07 +1000)
commitd29a873106706417e0564778d772f55f5502d7c1
treefa4138f3f2d0c9c1bd01d5b44b6ffb61a064224c
parent97bc1947790aefa61f49d0f1a82f0b3b517fae82
powerpc: Offline CPU in stop_this_cpu()

printk_safe_flush_on_panic() has special lock breaking code for the case
where we panic()ed with the console lock held. It relies on panic IPI
causing other CPUs to mark themselves offline.

Do as most other architectures do.

This effectively reverts commit 0405736ec878 ("powerpc: smp_send_stop do
not offline stopped CPUs"), unfortunately it may result in some false
positive warnings, but the alternative is more situations where we can
crash without getting messages out.

Fixes: 0405736ec878 ("powerpc: smp_send_stop do not offline stopped CPUs")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210623041245.865134-1-npiggin@gmail.com
arch/powerpc/kernel/smp.c