Re: [PATCH v2 27/52] x86, pci, amd-bus: Fix CPU hotplug callback registration

2014-02-14 Thread Srivatsa S. Bhat
On 02/14/2014 11:05 PM, Bjorn Helgaas wrote: > On Fri, Feb 14, 2014 at 12:55 AM, 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_c

Re: [PATCH v2 27/52] x86, pci, amd-bus: Fix CPU hotplug callback registration

2014-02-14 Thread Bjorn Helgaas
On Fri, Feb 14, 2014 at 12:55 AM, 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 27/52] x86, pci, amd-bus: 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