Re: [PATCH] cpu: Speedup disable_nonboot_cpus()

2013-05-21 Thread Russ Anderson
On Tue, May 21, 2013 at 02:17:17PM -0700, Andrew Morton wrote: > On Fri, 3 May 2013 17:35:44 -0500 Russ Anderson wrote: > > > The routine disable_nonboot_cpus() shuts down cpus sequentially > > using for_each_online_cpu(cpu) to call cpu_down() one cpu at > > a time. cpu_down() calls __stop_machi

Re: [PATCH] cpu: Speedup disable_nonboot_cpus()

2013-05-21 Thread Andrew Morton
On Fri, 3 May 2013 17:35:44 -0500 Russ Anderson wrote: > The routine disable_nonboot_cpus() shuts down cpus sequentially > using for_each_online_cpu(cpu) to call cpu_down() one cpu at > a time. cpu_down() calls __stop_machine() which stops all > the cpus while it disables one. Then it re-enable

[PATCH] cpu: Speedup disable_nonboot_cpus()

2013-05-03 Thread Russ Anderson
The routine disable_nonboot_cpus() shuts down cpus sequentially using for_each_online_cpu(cpu) to call cpu_down() one cpu at a time. cpu_down() calls __stop_machine() which stops all the cpus while it disables one. Then it re-enables the remaining cpus, only to do it all over again for the next c