Skip to contentSkip to conversation

linux/x86-64: slightly simplify smp-xen.c

PATCH New Jan Beulich 1 participant 1 message Mar 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/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.

As usual, written and tested on 2.6.25-rc5 and made apply to the 2.6.18 tree without further testing.

arch/x86_64/kernel/smp-xen.c +0 -2
Index: head-2008-03-11/arch/x86_64/kernel/smp-xen.c
===================================================================
@@ -69,7 +69,6 @@
    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, 
@@ -83,7 +83,6 @@
 	load_cr3(swapper_pg_dir);
 }
 
-#ifndef CONFIG_XEN
 /*
  *
  * The flush IPI assumes that a thread switch happens in this order: