aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/genapic.h13
-rw-r--r--arch/x86/kernel/probe_32.c9
2 files changed, 10 insertions, 12 deletions
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h
index a6d0b00a544..9b874a38683 100644
--- a/arch/x86/include/asm/genapic.h
+++ b/arch/x86/include/asm/genapic.h
@@ -168,8 +168,6 @@ extern void apic_send_IPI_self(int vector);
168extern struct genapic apic_x2apic_uv_x; 168extern struct genapic apic_x2apic_uv_x;
169DECLARE_PER_CPU(int, x2apic_extra_bits); 169DECLARE_PER_CPU(int, x2apic_extra_bits);
170 170
171extern void default_setup_apic_routing(void);
172
173extern int default_cpu_present_to_apicid(int mps_cpu); 171extern int default_cpu_present_to_apicid(int mps_cpu);
174extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); 172extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid);
175#endif 173#endif
@@ -211,10 +209,9 @@ static inline unsigned int read_apic_id(void)
211 return apic->get_apic_id(reg); 209 return apic->get_apic_id(reg);
212} 210}
213 211
214#ifdef CONFIG_X86_64
215extern void default_setup_apic_routing(void); 212extern void default_setup_apic_routing(void);
216#else
217 213
214#ifdef CONFIG_X86_32
218/* 215/*
219 * Set up the logical destination ID. 216 * Set up the logical destination ID.
220 * 217 *
@@ -251,14 +248,6 @@ static inline int default_phys_pkg_id(int cpuid_apic, int index_msb)
251 return cpuid_apic >> index_msb; 248 return cpuid_apic >> index_msb;
252} 249}
253 250
254static inline void default_setup_apic_routing(void)
255{
256#ifdef CONFIG_X86_IO_APIC
257 printk("Enabling APIC mode: %s. Using %d I/O APICs\n",
258 "Flat", nr_ioapics);
259#endif
260}
261
262extern int default_apicid_to_node(int logical_apicid); 251extern int default_apicid_to_node(int logical_apicid);
263 252
264#endif 253#endif
diff --git a/arch/x86/kernel/probe_32.c b/arch/x86/kernel/probe_32.c
index 6e31b17d546..b3d5d74e522 100644
--- a/arch/x86/kernel/probe_32.c
+++ b/arch/x86/kernel/probe_32.c
@@ -53,6 +53,15 @@ int no_broadcast = DEFAULT_SEND_IPI;
53 53
54#ifdef CONFIG_X86_LOCAL_APIC 54#ifdef CONFIG_X86_LOCAL_APIC
55 55
56void default_setup_apic_routing(void)
57{
58#ifdef CONFIG_X86_IO_APIC
59 printk(KERN_INFO
60 "Enabling APIC mode: Flat. Using %d I/O APICs\n",
61 nr_ioapics);
62#endif
63}
64
56static void default_vector_allocation_domain(int cpu, struct cpumask *retmask) 65static void default_vector_allocation_domain(int cpu, struct cpumask *retmask)
57{ 66{
58 /* 67 /*