aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 00:50:47 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:24 -0500
commita21769a4461801454930a06bc18bd8249cd9e993 (patch)
tree8b879f9a6d1c957d17a155ff865a0f7c8a18e257 /arch/x86/kernel
parent5257c5111ca21c8e857b65a79ab986b313e1c362 (diff)
x86, apic: clean up ->cpu_present_to_apicid()
- separate the namespace - remove macros Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/genapic_flat_64.c4
-rw-r--r--arch/x86/kernel/genx2apic_cluster.c2
-rw-r--r--arch/x86/kernel/genx2apic_phys.c2
-rw-r--r--arch/x86/kernel/genx2apic_uv_x.c2
-rw-r--r--arch/x86/kernel/smpboot.c9
5 files changed, 13 insertions, 6 deletions
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c
index 9446f372a16..f4a2c1c0a1a 100644
--- a/arch/x86/kernel/genapic_flat_64.c
+++ b/arch/x86/kernel/genapic_flat_64.c
@@ -197,7 +197,7 @@ struct genapic apic_flat = {
197 .multi_timer_check = NULL, 197 .multi_timer_check = NULL,
198 .apicid_to_node = NULL, 198 .apicid_to_node = NULL,
199 .cpu_to_logical_apicid = NULL, 199 .cpu_to_logical_apicid = NULL,
200 .cpu_present_to_apicid = NULL, 200 .cpu_present_to_apicid = default_cpu_present_to_apicid,
201 .apicid_to_cpu_present = NULL, 201 .apicid_to_cpu_present = NULL,
202 .setup_portio_remap = NULL, 202 .setup_portio_remap = NULL,
203 .check_phys_apicid_present = NULL, 203 .check_phys_apicid_present = NULL,
@@ -341,7 +341,7 @@ struct genapic apic_physflat = {
341 .multi_timer_check = NULL, 341 .multi_timer_check = NULL,
342 .apicid_to_node = NULL, 342 .apicid_to_node = NULL,
343 .cpu_to_logical_apicid = NULL, 343 .cpu_to_logical_apicid = NULL,
344 .cpu_present_to_apicid = NULL, 344 .cpu_present_to_apicid = default_cpu_present_to_apicid,
345 .apicid_to_cpu_present = NULL, 345 .apicid_to_cpu_present = NULL,
346 .setup_portio_remap = NULL, 346 .setup_portio_remap = NULL,
347 .check_phys_apicid_present = NULL, 347 .check_phys_apicid_present = NULL,
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c
index 2eeca6e744a..710d612a964 100644
--- a/arch/x86/kernel/genx2apic_cluster.c
+++ b/arch/x86/kernel/genx2apic_cluster.c
@@ -199,7 +199,7 @@ struct genapic apic_x2apic_cluster = {
199 .multi_timer_check = NULL, 199 .multi_timer_check = NULL,
200 .apicid_to_node = NULL, 200 .apicid_to_node = NULL,
201 .cpu_to_logical_apicid = NULL, 201 .cpu_to_logical_apicid = NULL,
202 .cpu_present_to_apicid = NULL, 202 .cpu_present_to_apicid = default_cpu_present_to_apicid,
203 .apicid_to_cpu_present = NULL, 203 .apicid_to_cpu_present = NULL,
204 .setup_portio_remap = NULL, 204 .setup_portio_remap = NULL,
205 .check_phys_apicid_present = NULL, 205 .check_phys_apicid_present = NULL,
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c
index be0ee3e56ef..49a449178c3 100644
--- a/arch/x86/kernel/genx2apic_phys.c
+++ b/arch/x86/kernel/genx2apic_phys.c
@@ -195,7 +195,7 @@ struct genapic apic_x2apic_phys = {
195 .multi_timer_check = NULL, 195 .multi_timer_check = NULL,
196 .apicid_to_node = NULL, 196 .apicid_to_node = NULL,
197 .cpu_to_logical_apicid = NULL, 197 .cpu_to_logical_apicid = NULL,
198 .cpu_present_to_apicid = NULL, 198 .cpu_present_to_apicid = default_cpu_present_to_apicid,
199 .apicid_to_cpu_present = NULL, 199 .apicid_to_cpu_present = NULL,
200 .setup_portio_remap = NULL, 200 .setup_portio_remap = NULL,
201 .check_phys_apicid_present = NULL, 201 .check_phys_apicid_present = NULL,
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c
index 68b423f3da9..a08a6359186 100644
--- a/arch/x86/kernel/genx2apic_uv_x.c
+++ b/arch/x86/kernel/genx2apic_uv_x.c
@@ -260,7 +260,7 @@ struct genapic apic_x2apic_uv_x = {
260 .multi_timer_check = NULL, 260 .multi_timer_check = NULL,
261 .apicid_to_node = NULL, 261 .apicid_to_node = NULL,
262 .cpu_to_logical_apicid = NULL, 262 .cpu_to_logical_apicid = NULL,
263 .cpu_present_to_apicid = NULL, 263 .cpu_present_to_apicid = default_cpu_present_to_apicid,
264 .apicid_to_cpu_present = NULL, 264 .apicid_to_cpu_present = NULL,
265 .setup_portio_remap = NULL, 265 .setup_portio_remap = NULL,
266 .check_phys_apicid_present = NULL, 266 .check_phys_apicid_present = NULL,
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 1dd4cecd4bc..812bf39de35 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -903,9 +903,16 @@ do_rest:
903 return boot_error; 903 return boot_error;
904} 904}
905 905
906#ifdef CONFIG_X86_64
907int default_cpu_present_to_apicid(int mps_cpu)
908{
909 return __default_cpu_present_to_apicid(mps_cpu);
910}
911#endif
912
906int __cpuinit native_cpu_up(unsigned int cpu) 913int __cpuinit native_cpu_up(unsigned int cpu)
907{ 914{
908 int apicid = cpu_present_to_apicid(cpu); 915 int apicid = apic->cpu_present_to_apicid(cpu);
909 unsigned long flags; 916 unsigned long flags;
910 int err; 917 int err;
911 918