diff options
author | Dengcheng Zhu <dzhu@wavecomp.com> | 2018-09-11 23:49:20 +0200 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-09-21 23:25:20 +0200 |
commit | dc57aaf95a516f70e2d527d8287a0332c481a226 (patch) | |
tree | 1af8e036c0c14822916a946f003495e518294782 /arch/mips/kernel/machine_kexec.c | |
parent | MIPS/PCI: Let Loongson-3 pci_ops access extended config space (diff) | |
download | linux-dc57aaf95a516f70e2d527d8287a0332c481a226.tar.xz linux-dc57aaf95a516f70e2d527d8287a0332c481a226.zip |
MIPS: kexec: Mark CPU offline before disabling local IRQ
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
Diffstat (limited to 'arch/mips/kernel/machine_kexec.c')
-rw-r--r-- | arch/mips/kernel/machine_kexec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/machine_kexec.c b/arch/mips/kernel/machine_kexec.c index 8b574bcd39ba..4b3726e4fe3a 100644 --- a/arch/mips/kernel/machine_kexec.c +++ b/arch/mips/kernel/machine_kexec.c @@ -118,6 +118,9 @@ machine_kexec(struct kimage *image) *ptr = (unsigned long) phys_to_virt(*ptr); } + /* Mark offline BEFORE disabling local irq. */ + set_cpu_online(smp_processor_id(), false); + /* * we do not want to be bothered. */ |