commit | e15c6e37066e9ce6705f22b71e60ca2d78db8d45 | [log] [tgz] |
---|---|---|
author | Atish Patra <atish.patra@wdc.com> | Fri Feb 22 11:41:35 2019 -0800 |
committer | Palmer Dabbelt <palmer@sifive.com> | Mon Mar 04 10:40:36 2019 -0800 |
tree | a1fae221eda1cd98a3d61d6236980f9452640283 | |
parent | 79a47bad61bb340aed94e73b471616b246b2ecf3 [diff] |
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>