[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86, smpboot: A few code cleanups.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1224690464 -3600
# Node ID 10d338e5f741f813ea5b3335c405e9a57d55f535
# Parent  71faca83998d21aaa698aa14d52fb256770f7994
x86, smpboot: A few code cleanups.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/smpboot.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff -r 71faca83998d -r 10d338e5f741 xen/arch/x86/smpboot.c
--- a/xen/arch/x86/smpboot.c    Wed Oct 22 16:41:33 2008 +0100
+++ b/xen/arch/x86/smpboot.c    Wed Oct 22 16:47:44 2008 +0100
@@ -112,7 +112,7 @@ static void map_cpu_to_logical_apicid(vo
 /* State of each CPU. */
 DEFINE_PER_CPU(int, cpu_state) = { 0 };
 
-static void *stack_base[NR_CPUS] __cacheline_aligned;
+static void *stack_base[NR_CPUS];
 static DEFINE_SPINLOCK(cpu_add_remove_lock);
 
 /*
@@ -805,14 +805,6 @@ static inline int alloc_cpu_id(void)
        return cpu;
 }
 
-static struct vcpu *prepare_idle_vcpu(unsigned int cpu)
-{
-       if (idle_vcpu[cpu])
-               return idle_vcpu[cpu];
-
-       return alloc_idle_vcpu(cpu);
-}
-
 static void *prepare_idle_stack(unsigned int cpu)
 {
        if (!stack_base[cpu])
@@ -849,7 +841,7 @@ static int __devinit do_boot_cpu(int api
 
        booting_cpu = cpu;
 
-       v = prepare_idle_vcpu(cpu);
+       v = alloc_idle_vcpu(cpu);
        BUG_ON(v == NULL);
 
        /* start_eip had better be page-aligned! */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.