Re: [PATCH 44/51] xen, balloon: Fix CPU hotplug callback registration

2014-02-05 Thread Boris Ostrovsky
- srivatsa.b...@linux.vnet.ibm.com 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) > ini

[PATCH 44/51] xen, balloon: Fix CPU hotplug callback registration

2014-02-05 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