Re: [PATCH v2 38/52] drivers/base/topology.c: Fix CPU hotplug callback registration

2014-02-15 Thread Greg Kroah-Hartman
On Fri, Feb 14, 2014 at 01:27:51PM +0530, Srivatsa S. Bhat wrote: > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: > > get_online_cpus(); > > for_each_online_cpu(cpu) >

[PATCH v2 38/52] drivers/base/topology.c: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
Subsystems that want to register CPU hotplug callbacks, as well as perform initialization for the CPUs that are already online, often do it as shown below: get_online_cpus(); for_each_online_cpu(cpu) init_cpu(cpu); register_cpu_notifier(&foobar_cpu_notifie