Skip to contentSkip to conversation

xen: fix xen-smp.patch: setup_runstate_info

PATCH New Jeremy Fitzhardinge 1 participant 1 message Jun 6, 2007 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: fix xen-smp.patch: setup_runstate_info

Somehow an smp_processor_id() survived the transition to passing the cpu around.

---
 arch/i386/xen/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

===================================================================

arch/i386/xen/time.c +1 -1
@@ -110,7 +110,7 @@ static void setup_runstate_info(int cpu)
 	area.addr.v = &per_cpu(runstate, cpu);
 
 	if (HYPERVISOR_vcpu_op(VCPUOP_register_runstate_memory_area,
-			       smp_processor_id(), &area))
+			       cpu, &area))
 		BUG();
 }