]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
xen/x86-64: slightly simplify smp-xen.c
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:20:34 +0000 (11:20 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:20:34 +0000 (11:20 +0000)
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@novell.com>
arch/x86_64/kernel/smp-xen.c

index ffa54c2660ee626d1b5cdc6639878361b2967fe2..c8406813b88d266ef6ae00f325cdeb8fd5ae16be 100644 (file)
@@ -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 long cpu)
        load_cr3(swapper_pg_dir);
 }
 
-#ifndef CONFIG_XEN
 /*
  *
  * The flush IPI assumes that a thread switch happens in this order: