Re: [v3 PATCH 1/8] RISC-V: Do not wait indefinitely in __cpu_up

2019-02-08 Thread Christoph Hellwig
On Thu, Feb 07, 2019 at 05:51:14PM -0800, Atish Patra wrote: > 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

[v3 PATCH 1/8] RISC-V: Do not wait indefinitely in __cpu_up

2019-02-07 Thread Atish Patra
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 Reviewed-by: Anup Patel