]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
riscv: don't stop itself in smp_send_stop
authorAndreas Schwab <schwab@suse.de>
Tue, 11 Dec 2018 10:20:40 +0000 (11:20 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 7 Jan 2019 16:19:19 +0000 (08:19 -0800)
commit37a107ff6dcd773da4dc75b62b9bf4349dd7300f
tree3c958f7b8b007b28e3dd91aa823697458d7cab67
parent8fd6e05c7463b635e51ec7df0a1858c1b5a6e350
riscv: don't stop itself in smp_send_stop

Add IPI_CPU_STOP message and use it in smp_send_stop to stop other cpus,
but not itself.  Mark cpu offline on reception of IPI_CPU_STOP.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/smp.c