xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xen/smp: Remove unnecessary call to smp_processor_id()
@ 2012-03-22 12:59 Srivatsa S. Bhat
  0 siblings, 0 replies; only message in thread
From: Srivatsa S. Bhat @ 2012-03-22 12:59 UTC (permalink / raw)
  To: konrad.wilk, jeremy
  Cc: tglx, mingo, hpa, x86, xen-devel, virtualization, linux-kernel,
	Srivatsa S. Bhat

There is an extra and unnecessary call to smp_processor_id()
in cpu_bringup(). Remove it.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
---

 arch/x86/xen/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
index 501d4e0..acfe7a3 100644
--- a/arch/x86/xen/smp.c
+++ b/arch/x86/xen/smp.c
@@ -59,7 +59,7 @@ static irqreturn_t xen_reschedule_interrupt(int irq, void *dev_id)
 
 static void __cpuinit cpu_bringup(void)
 {
-	int cpu = smp_processor_id();
+	int cpu;
 
 	cpu_init();
 	touch_softlockup_watchdog();

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

only message in thread, other threads:[~2012-03-22 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 12:59 [PATCH] xen/smp: Remove unnecessary call to smp_processor_id() Srivatsa S. Bhat

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).