Re: [PATCH 13/51] powerpc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Madhavan Srinivasan
On Thursday 06 February 2014 03:36 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) >

Re: [PATCH 13/51] powerpc, sysfs: Fix CPU hotplug callback registration

2014-02-13 Thread Madhavan Srinivasan
On Thursday 06 February 2014 03:36 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 13/51] powerpc, sysfs: 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(_cpu_notifier);

[PATCH 13/51] powerpc, sysfs: 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);