]> asedeno.scripts.mit.edu Git - linux.git/commit
RISC-V: Do not wait indefinitely in __cpu_up
authorAtish Patra <atish.patra@wdc.com>
Fri, 22 Feb 2019 19:41:35 +0000 (11:41 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 4 Mar 2019 18:40:36 +0000 (10:40 -0800)
commite15c6e37066e9ce6705f22b71e60ca2d78db8d45
treea1fae221eda1cd98a3d61d6236980f9452640283
parent79a47bad61bb340aed94e73b471616b246b2ecf3
RISC-V: Do not wait indefinitely in __cpu_up

In SMP path, __cpu_up waits for other CPU to come online indefinitely.
This is wrong as other CPU might be disabled in machine mode and
possible CPU is set to the cpus present in DT.

Introduce a completion variable and waits only for a second.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/smpboot.c