Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3b2c338 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds
Browse files

[PATCH] KVM: Use raw_smp_processor_id() instead of smp_processor_id() where applicable



Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 965b58a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -116,7 +116,7 @@ static void vmcs_clear(struct vmcs *vmcs)
static void __vcpu_clear(void *arg)
static void __vcpu_clear(void *arg)
{
{
	struct kvm_vcpu *vcpu = arg;
	struct kvm_vcpu *vcpu = arg;
	int cpu = smp_processor_id();
	int cpu = raw_smp_processor_id();


	if (vcpu->cpu == cpu)
	if (vcpu->cpu == cpu)
		vmcs_clear(vcpu->vmcs);
		vmcs_clear(vcpu->vmcs);
@@ -541,7 +541,7 @@ static struct vmcs *alloc_vmcs_cpu(int cpu)


static struct vmcs *alloc_vmcs(void)
static struct vmcs *alloc_vmcs(void)
{
{
	return alloc_vmcs_cpu(smp_processor_id());
	return alloc_vmcs_cpu(raw_smp_processor_id());
}
}


static void free_vmcs(struct vmcs *vmcs)
static void free_vmcs(struct vmcs *vmcs)