virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]  xen: fix xen-smp.patch: setup_runstate_info
@ 2007-06-06 22:40 Jeremy Fitzhardinge
  0 siblings, 0 replies; only message in thread
From: Jeremy Fitzhardinge @ 2007-06-06 22:40 UTC (permalink / raw)
  To: Andrew Morton, Andi Kleen
  Cc: Virtualization Mailing List, Linux Kernel Mailing List,
	Jan Beulich

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

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Jan Beulich <jbeulich@novell.com>

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

===================================================================
--- a/arch/i386/xen/time.c
+++ b/arch/i386/xen/time.c
@@ -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();
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-06 22:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 22:40 [PATCH] xen: fix xen-smp.patch: setup_runstate_info Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).