MIPS: kexec: Mark CPU offline before disabling local IRQ
authorDengcheng Zhu <dzhu@wavecomp.com>
Tue, 11 Sep 2018 21:49:20 +0000 (14:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:19:10 +0000 (09:19 +0100)
commit754b404db8c8f529f015cddeb398c85ef2a238b7
treee90bfb1ce0606693fc3d904131b8c7565e867c43
parente066306bacafc91b7cb68bc19cd38aab4df59cf6
MIPS: kexec: Mark CPU offline before disabling local IRQ

[ Upstream commit dc57aaf95a516f70e2d527d8287a0332c481a226 ]

After changing CPU online status, it will not be sent any IPIs such as in
__flush_cache_all() on software coherency systems. Do this before disabling
local IRQ.

Signed-off-by: Dengcheng Zhu <dzhu@wavecomp.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20571/
Cc: pburton@wavecomp.com
Cc: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Cc: rachel.mozes@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kernel/crash.c
arch/mips/kernel/machine_kexec.c