Re: [PATCH] ARM: Don't use complete() during __cpu_die

2015-02-04 Thread Krzysztof Kozlowski
On śro, 2015-02-04 at 14:42 -0800, Stephen Boyd wrote: > On 02/04/15 08:53, Krzysztof Kozlowski wrote: > > The complete() should not be used on offlined CPU. Rewrite the > > wait-complete mechanism with wait_on_bit_timeout(). > > > > The CPU triggering hot unplug (e.g. CPU0) will loop until some bi

Re: [PATCH] ARM: Don't use complete() during __cpu_die

2015-02-04 Thread Krzysztof Kozlowski
On śro, 2015-02-04 at 09:57 -0800, Paul E. McKenney wrote: > On Wed, Feb 04, 2015 at 05:53:55PM +0100, Krzysztof Kozlowski wrote: > > The complete() should not be used on offlined CPU. Rewrite the > > wait-complete mechanism with wait_on_bit_timeout(). > > > > The CPU triggering hot unplug (e.g. C

Re: [PATCH] ARM: Don't use complete() during __cpu_die

2015-02-04 Thread Stephen Boyd
On 02/04/15 08:53, Krzysztof Kozlowski wrote: > The complete() should not be used on offlined CPU. Rewrite the > wait-complete mechanism with wait_on_bit_timeout(). > > The CPU triggering hot unplug (e.g. CPU0) will loop until some bit is > cleared. In each iteration schedule_timeout() is used with

Re: [PATCH] ARM: Don't use complete() during __cpu_die

2015-02-04 Thread Paul E. McKenney
On Wed, Feb 04, 2015 at 05:53:55PM +0100, Krzysztof Kozlowski wrote: > The complete() should not be used on offlined CPU. Rewrite the > wait-complete mechanism with wait_on_bit_timeout(). > > The CPU triggering hot unplug (e.g. CPU0) will loop until some bit is > cleared. In each iteration schedul

[PATCH] ARM: Don't use complete() during __cpu_die

2015-02-04 Thread Krzysztof Kozlowski
The complete() should not be used on offlined CPU. Rewrite the wait-complete mechanism with wait_on_bit_timeout(). The CPU triggering hot unplug (e.g. CPU0) will loop until some bit is cleared. In each iteration schedule_timeout() is used with initial sleep time of 1 ms. Later it is increased to