]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
xen: move events.c to drivers/xen for IA64/Xen support
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 2 Apr 2008 17:53:55 +0000 (10:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Apr 2008 21:57:32 +0000 (23:57 +0200)
move arch/x86/xen/events.c undedr drivers/xen to share codes
with x86 and ia64. And minor adjustment to compile.
ia64/xen also uses events.c

Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/xen/Makefile
arch/x86/xen/xen-ops.h
drivers/xen/Makefile
drivers/xen/events.c [moved from arch/x86/xen/events.c with 99% similarity]
include/xen/xen-ops.h [new file with mode: 0644]

index c5e9aa4899008fbd0c7c172756a142f11a57ee42..95c59260dccbfe0cbc8e8080633a0e964f89fd52 100644 (file)
@@ -1,4 +1,4 @@
 obj-y          := enlighten.o setup.o multicalls.o mmu.o \
-                       events.o time.o manage.o xen-asm.o
+                       time.o manage.o xen-asm.o
 
 obj-$(CONFIG_SMP)      += smp.o
index 22395d20dd6e47eb30097ef7d471d8a055268fc6..f1063ae0803795014d29af4a02ca9eb4211536b1 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/init.h>
 #include <linux/irqreturn.h>
+#include <xen/xen-ops.h>
 
 /* These are code, but not functions.  Defined in entry.S */
 extern const char xen_hypervisor_callback[];
@@ -10,7 +11,6 @@ extern const char xen_failsafe_callback[];
 
 void xen_copy_trap_info(struct trap_info *traps);
 
-DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
 DECLARE_PER_CPU(unsigned long, xen_cr3);
 DECLARE_PER_CPU(unsigned long, xen_current_cr3);
 
index 609fdda90a347bea5df9ae76407b6244970dfd04..823ce788b14b3e4dfd7a83821c416d60f7dabdf9 100644 (file)
@@ -1,2 +1,2 @@
-obj-y  += grant-table.o features.o
+obj-y  += grant-table.o features.o events.o
 obj-y  += xenbus/
similarity index 99%
rename from arch/x86/xen/events.c
rename to drivers/xen/events.c
index 85bac298b3cb901240276959d5bd4f6e3a065947..c50d499b1e6f20a106e4d6c9e64a047defc7a182 100644 (file)
 #include <asm/xen/hypercall.h>
 #include <asm/xen/hypervisor.h>
 
+#include <xen/xen-ops.h>
 #include <xen/events.h>
 #include <xen/interface/xen.h>
 #include <xen/interface/event_channel.h>
 
-#include "xen-ops.h"
-
 /*
  * This lock protects updates to the following mapping and reference-count
  * arrays. The lock does not need to be acquired to read the mapping tables.
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
new file mode 100644 (file)
index 0000000..10ddfe0
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef INCLUDE_XEN_OPS_H
+#define INCLUDE_XEN_OPS_H
+
+#include <linux/percpu.h>
+
+DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
+
+#endif /* INCLUDE_XEN_OPS_H */