diff options
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/genapic_flat_64.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_cluster.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_phys.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 9 |
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 9446f372a16b..f4a2c1c0a1a4 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 2eeca6e744af..710d612a9641 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 be0ee3e56ef1..49a449178c3b 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 68b423f3da99..a08a63591864 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 1dd4cecd4bc0..812bf39de355 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 | ||
907 | int default_cpu_present_to_apicid(int mps_cpu) | ||
908 | { | ||
909 | return __default_cpu_present_to_apicid(mps_cpu); | ||
910 | } | ||
911 | #endif | ||
912 | |||
906 | int __cpuinit native_cpu_up(unsigned int cpu) | 913 | int __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 | ||