Re: [PATCH v2 29/52] x86, kvm: Fix CPU hotplug callback registration

2014-02-14 Thread Paolo Bonzini
Il 14/02/2014 08:55, Srivatsa S. Bhat ha scritto: 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)

[PATCH v2 29/52] x86, kvm: 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