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

[Xen-changelog] Cleanup x86/x86_64 apic.c files.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 765b0657264d6c9e4843c30875154e1269a55d4e
# Parent  fd3f1e38fdcf9efd444d63e535d943b3f996d1a3
Cleanup x86/x86_64 apic.c files.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r fd3f1e38fdcf -r 765b0657264d 
linux-2.6-xen-sparse/arch/i386/kernel/apic-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/kernel/apic-xen.c  Wed Feb 15 11:21:12 2006
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/apic-xen.c  Wed Feb 15 14:13:10 2006
@@ -60,11 +60,6 @@
  */
 int apic_verbosity;
 
-int get_physical_broadcast(void)
-{
-        return 0xff;
-}
-
 /*
  * 'what should we do if we get a hw irq event on an illegal vector'.
  * each architecture has to answer this themselves.
@@ -83,12 +78,19 @@
        ack_APIC_irq();
 }
 
+int get_physical_broadcast(void)
+{
+        return 0xff;
+}
+
 #ifdef CONFIG_XEN
 void switch_APIC_timer_to_ipi(void *cpumask) { }
 EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
 void switch_ipi_to_APIC_timer(void *cpumask) { }
 EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
-#else
+#endif
+
+#ifndef CONFIG_XEN
 #ifndef CONFIG_SMP
 static void up_apic_timer_interrupt_call(struct pt_regs *regs)
 {
@@ -120,12 +122,12 @@
 #endif
        }
 }
+#endif
 
 int setup_profiling_timer(unsigned int multiplier)
 {
        return -EINVAL;
 }
-#endif
 
 /*
  * This initializes the IO-APIC and APIC hardware if this is
diff -r fd3f1e38fdcf -r 765b0657264d 
linux-2.6-xen-sparse/arch/x86_64/kernel/apic-xen.c
--- a/linux-2.6-xen-sparse/arch/x86_64/kernel/apic-xen.c        Wed Feb 15 
11:21:12 2006
+++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/apic-xen.c        Wed Feb 15 
14:13:10 2006
@@ -36,11 +36,19 @@
 #include <asm/hpet.h>
 #include <asm/idle.h>
 
-/*
- * Debug level
- */
 int apic_verbosity;
-int disable_apic;
+
+#ifdef CONFIG_XEN
+void switch_APIC_timer_to_ipi(void *cpumask) { }
+EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
+void switch_ipi_to_APIC_timer(void *cpumask) { }
+EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
+#endif
+
+int setup_profiling_timer(unsigned int multiplier)
+{
+       return -EINVAL;
+}
 
 void smp_local_timer_interrupt(struct pt_regs *regs)
 {
@@ -159,17 +167,7 @@
        irq_exit();
 }
 
-int get_physical_broadcast(void)
-{
-        return 0xff;
-}
-
-#ifdef CONFIG_XEN
-void switch_APIC_timer_to_ipi(void *cpumask) { }
-EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
-void switch_ipi_to_APIC_timer(void *cpumask) { }
-EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
-#endif
+int disable_apic;
 
 /*
  * This initializes the IO-APIC and APIC hardware if this is
diff -r fd3f1e38fdcf -r 765b0657264d 
linux-2.6-xen-sparse/drivers/xen/core/smpboot.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/smpboot.c   Wed Feb 15 11:21:12 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/core/smpboot.c   Wed Feb 15 14:13:10 2006
@@ -432,11 +432,12 @@
 {
 }
 
+#ifndef CONFIG_X86_LOCAL_APIC
 int setup_profiling_timer(unsigned int multiplier)
 {
-       /* Dummy function. */
-       return 0;
-}
+       return -EINVAL;
+}
+#endif
 
 /*
  * Local variables:

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