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

[Xen-changelog] [linux-2.6.18-xen] xen/x86-64: slightly simplify smp-xen.c



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1205839234 0
# Node ID ecf56205206a457d86a9dc370704c7c86f29aeb4
# Parent  32306ea54ae85506c563f119527246b35c0ac59b
xen/x86-64: slightly simplify smp-xen.c

Two Xen conditionals can be folded into one, as the code between the
two is also not used on Xen.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 arch/x86_64/kernel/smp-xen.c |    2 --
 1 files changed, 2 deletions(-)

diff -r 32306ea54ae8 -r ecf56205206a arch/x86_64/kernel/smp-xen.c
--- a/arch/x86_64/kernel/smp-xen.c      Tue Mar 18 11:19:54 2008 +0000
+++ b/arch/x86_64/kernel/smp-xen.c      Tue Mar 18 11:20:34 2008 +0000
@@ -70,7 +70,6 @@ union smp_flush_state {
    to a full cache line because other CPUs can access it and we don't
    want false sharing in the per cpu data segment. */
 static DEFINE_PER_CPU(union smp_flush_state, flush_state);
-#endif
 
 /*
  * We cannot call mmdrop() because we are in interrupt context, 
@@ -84,7 +83,6 @@ static inline void leave_mm(unsigned lon
        load_cr3(swapper_pg_dir);
 }
 
-#ifndef CONFIG_XEN
 /*
  *
  * The flush IPI assumes that a thread switch happens in this order:

_______________________________________________
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®.