remove: genapic prepare
authorIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 13:36:42 +0000 (14:36 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 16:52:42 +0000 (17:52 +0100)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/genapic.h
arch/x86/kernel/probe_32.c

index a6d0b00a544cf7bf4fdd7209d0f0f0cdd84d4b7c..9b874a3868373c0c07b9e0b335b873549e4ef237 100644 (file)
@@ -168,8 +168,6 @@ extern void apic_send_IPI_self(int vector);
 extern struct genapic apic_x2apic_uv_x;
 DECLARE_PER_CPU(int, x2apic_extra_bits);
 
-extern void default_setup_apic_routing(void);
-
 extern int default_cpu_present_to_apicid(int mps_cpu);
 extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid);
 #endif
@@ -211,10 +209,9 @@ static inline unsigned int read_apic_id(void)
        return apic->get_apic_id(reg);
 }
 
-#ifdef CONFIG_X86_64
 extern void default_setup_apic_routing(void);
-#else
 
+#ifdef CONFIG_X86_32
 /*
  * Set up the logical destination ID.
  *
@@ -251,14 +248,6 @@ static inline int default_phys_pkg_id(int cpuid_apic, int index_msb)
        return cpuid_apic >> index_msb;
 }
 
-static inline void default_setup_apic_routing(void)
-{
-#ifdef CONFIG_X86_IO_APIC
-       printk("Enabling APIC mode:  %s.  Using %d I/O APICs\n",
-                                       "Flat", nr_ioapics);
-#endif
-}
-
 extern int default_apicid_to_node(int logical_apicid);
 
 #endif
index 6e31b17d546d59ce93e71e6bfbb5fd5c5ecebb9b..b3d5d74e52295276194e1a7c42db4c08e35e3cde 100644 (file)
@@ -53,6 +53,15 @@ int no_broadcast = DEFAULT_SEND_IPI;
 
 #ifdef CONFIG_X86_LOCAL_APIC
 
+void default_setup_apic_routing(void)
+{
+#ifdef CONFIG_X86_IO_APIC
+       printk(KERN_INFO
+               "Enabling APIC mode:  Flat.  Using %d I/O APICs\n",
+               nr_ioapics);
+#endif
+}
+
 static void default_vector_allocation_domain(int cpu, struct cpumask *retmask)
 {
        /*