Thread (72 messages) 72 messages, 8 authors, 2013-06-27

Re: [PATCH v2 29/45] kvm/vmx: Use get/put_online_cpus_atomic() to prevent CPU offline

From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2013-06-26 07:46:53
Also in: kvm, linux-arch, linux-pm, linuxppc-dev, lkml

Il 25/06/2013 22:30, Srivatsa S. Bhat ha scritto:
-	cpu = get_cpu();
+	cpu = get_online_cpus_atomic();
 	vmx_vcpu_load(&vmx->vcpu, cpu);
 	vmx->vcpu.cpu = cpu;
 	err = vmx_vcpu_setup(vmx);
 	vmx_vcpu_put(&vmx->vcpu);
-	put_cpu();
+	put_online_cpus_atomic();
The new API has a weird name.  Why are you adding new functions instead
of just modifying get/put_cpu?

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help