diff options
author | Tejun Heo <tj@kernel.org> | 2011-01-23 08:37:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-28 08:54:06 -0500 |
commit | 7632611f534340182c832d2b139cb19676f24e1a (patch) | |
tree | 00cea874306a948b3ff82341d147e20dac49f527 /arch/x86 | |
parent | 6f802c4bfa2acf1bffa8341fe9084da0205d581d (diff) |
x86: Kill apic->cpu_to_logical_apicid()
After the previous patch, apic->cpu_to_logical_apicid() is no
longer used. Kill it.
For apic types with custom cpu_to_logical_apicid() which is also
used for other purposes, remove the function and modify its
users to do the mapping directly.
#ifdef's on CONFIG_SMP in es7000_32 and summit_32 are ignored
during conversion as they are not used for UP kernels.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: eric.dumazet@gmail.com
Cc: yinghai@kernel.org
Cc: brgerst@gmail.com
Cc: gorcunov@gmail.com
Cc: penberg@kernel.org
Cc: shaohui.zheng@intel.com
Cc: rientjes@google.com
LKML-Reference: <1295789862-25482-7-git-send-email-tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/apic.h | 7 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic_flat_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic_noop.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/apic/bigsmp_32.c | 19 | ||||
-rw-r--r-- | arch/x86/kernel/apic/es7000_32.c | 18 | ||||
-rw-r--r-- | arch/x86/kernel/apic/numaq_32.c | 8 | ||||
-rw-r--r-- | arch/x86/kernel/apic/probe_32.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/summit_32.c | 17 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_cluster.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_phys.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_uv_x.c | 1 |
11 files changed, 11 insertions, 70 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index eb139eced850..d1aa0c3e7a5c 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -307,7 +307,6 @@ struct apic { | |||
307 | void (*setup_apic_routing)(void); | 307 | void (*setup_apic_routing)(void); |
308 | int (*multi_timer_check)(int apic, int irq); | 308 | int (*multi_timer_check)(int apic, int irq); |
309 | int (*apicid_to_node)(int logical_apicid); | 309 | int (*apicid_to_node)(int logical_apicid); |
310 | int (*cpu_to_logical_apicid)(int cpu); | ||
311 | int (*cpu_present_to_apicid)(int mps_cpu); | 310 | int (*cpu_present_to_apicid)(int mps_cpu); |
312 | void (*apicid_to_cpu_present)(int phys_apicid, physid_mask_t *retmap); | 311 | void (*apicid_to_cpu_present)(int phys_apicid, physid_mask_t *retmap); |
313 | void (*setup_portio_remap)(void); | 312 | void (*setup_portio_remap)(void); |
@@ -557,12 +556,6 @@ static inline void default_ioapic_phys_id_map(physid_mask_t *phys_map, physid_ma | |||
557 | *retmap = *phys_map; | 556 | *retmap = *phys_map; |
558 | } | 557 | } |
559 | 558 | ||
560 | /* Mapping from cpu number to logical apicid */ | ||
561 | static inline int default_cpu_to_logical_apicid(int cpu) | ||
562 | { | ||
563 | return 1 << cpu; | ||
564 | } | ||
565 | |||
566 | static inline int __default_cpu_present_to_apicid(int mps_cpu) | 559 | static inline int __default_cpu_present_to_apicid(int mps_cpu) |
567 | { | 560 | { |
568 | if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) | 561 | if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) |
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c index 09d3b17ce0c2..5a9d11a94b55 100644 --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c | |||
@@ -186,7 +186,6 @@ struct apic apic_flat = { | |||
186 | .setup_apic_routing = NULL, | 186 | .setup_apic_routing = NULL, |
187 | .multi_timer_check = NULL, | 187 | .multi_timer_check = NULL, |
188 | .apicid_to_node = NULL, | 188 | .apicid_to_node = NULL, |
189 | .cpu_to_logical_apicid = NULL, | ||
190 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 189 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
191 | .apicid_to_cpu_present = NULL, | 190 | .apicid_to_cpu_present = NULL, |
192 | .setup_portio_remap = NULL, | 191 | .setup_portio_remap = NULL, |
@@ -338,7 +337,6 @@ struct apic apic_physflat = { | |||
338 | .setup_apic_routing = NULL, | 337 | .setup_apic_routing = NULL, |
339 | .multi_timer_check = NULL, | 338 | .multi_timer_check = NULL, |
340 | .apicid_to_node = NULL, | 339 | .apicid_to_node = NULL, |
341 | .cpu_to_logical_apicid = NULL, | ||
342 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 340 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
343 | .apicid_to_cpu_present = NULL, | 341 | .apicid_to_cpu_present = NULL, |
344 | .setup_portio_remap = NULL, | 342 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c index e31b9ffe25f5..f3d19b2426ab 100644 --- a/arch/x86/kernel/apic/apic_noop.c +++ b/arch/x86/kernel/apic/apic_noop.c | |||
@@ -54,11 +54,6 @@ static u64 noop_apic_icr_read(void) | |||
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||
57 | static int noop_cpu_to_logical_apicid(int cpu) | ||
58 | { | ||
59 | return 0; | ||
60 | } | ||
61 | |||
62 | static int noop_phys_pkg_id(int cpuid_apic, int index_msb) | 57 | static int noop_phys_pkg_id(int cpuid_apic, int index_msb) |
63 | { | 58 | { |
64 | return 0; | 59 | return 0; |
@@ -155,7 +150,6 @@ struct apic apic_noop = { | |||
155 | .multi_timer_check = NULL, | 150 | .multi_timer_check = NULL, |
156 | .apicid_to_node = noop_apicid_to_node, | 151 | .apicid_to_node = noop_apicid_to_node, |
157 | 152 | ||
158 | .cpu_to_logical_apicid = noop_cpu_to_logical_apicid, | ||
159 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 153 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
160 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 154 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
161 | 155 | ||
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c index cb804c5091b9..4c62592d6869 100644 --- a/arch/x86/kernel/apic/bigsmp_32.c +++ b/arch/x86/kernel/apic/bigsmp_32.c | |||
@@ -93,14 +93,6 @@ static int bigsmp_cpu_present_to_apicid(int mps_cpu) | |||
93 | return BAD_APICID; | 93 | return BAD_APICID; |
94 | } | 94 | } |
95 | 95 | ||
96 | /* Mapping from cpu number to logical apicid */ | ||
97 | static inline int bigsmp_cpu_to_logical_apicid(int cpu) | ||
98 | { | ||
99 | if (cpu >= nr_cpu_ids) | ||
100 | return BAD_APICID; | ||
101 | return cpu_physical_id(cpu); | ||
102 | } | ||
103 | |||
104 | static void bigsmp_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask_t *retmap) | 96 | static void bigsmp_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask_t *retmap) |
105 | { | 97 | { |
106 | /* For clustered we don't have a good way to do this yet - hack */ | 98 | /* For clustered we don't have a good way to do this yet - hack */ |
@@ -115,7 +107,11 @@ static int bigsmp_check_phys_apicid_present(int phys_apicid) | |||
115 | /* As we are using single CPU as destination, pick only one CPU here */ | 107 | /* As we are using single CPU as destination, pick only one CPU here */ |
116 | static unsigned int bigsmp_cpu_mask_to_apicid(const struct cpumask *cpumask) | 108 | static unsigned int bigsmp_cpu_mask_to_apicid(const struct cpumask *cpumask) |
117 | { | 109 | { |
118 | return bigsmp_cpu_to_logical_apicid(cpumask_first(cpumask)); | 110 | int cpu = cpumask_first(cpumask); |
111 | |||
112 | if (cpu < nr_cpu_ids) | ||
113 | return cpu_physical_id(cpu); | ||
114 | return BAD_APICID; | ||
119 | } | 115 | } |
120 | 116 | ||
121 | static unsigned int bigsmp_cpu_mask_to_apicid_and(const struct cpumask *cpumask, | 117 | static unsigned int bigsmp_cpu_mask_to_apicid_and(const struct cpumask *cpumask, |
@@ -129,9 +125,9 @@ static unsigned int bigsmp_cpu_mask_to_apicid_and(const struct cpumask *cpumask, | |||
129 | */ | 125 | */ |
130 | for_each_cpu_and(cpu, cpumask, andmask) { | 126 | for_each_cpu_and(cpu, cpumask, andmask) { |
131 | if (cpumask_test_cpu(cpu, cpu_online_mask)) | 127 | if (cpumask_test_cpu(cpu, cpu_online_mask)) |
132 | break; | 128 | return cpu_physical_id(cpu); |
133 | } | 129 | } |
134 | return bigsmp_cpu_to_logical_apicid(cpu); | 130 | return BAD_APICID; |
135 | } | 131 | } |
136 | 132 | ||
137 | static int bigsmp_phys_pkg_id(int cpuid_apic, int index_msb) | 133 | static int bigsmp_phys_pkg_id(int cpuid_apic, int index_msb) |
@@ -220,7 +216,6 @@ struct apic apic_bigsmp = { | |||
220 | .setup_apic_routing = bigsmp_setup_apic_routing, | 216 | .setup_apic_routing = bigsmp_setup_apic_routing, |
221 | .multi_timer_check = NULL, | 217 | .multi_timer_check = NULL, |
222 | .apicid_to_node = bigsmp_apicid_to_node, | 218 | .apicid_to_node = bigsmp_apicid_to_node, |
223 | .cpu_to_logical_apicid = bigsmp_cpu_to_logical_apicid, | ||
224 | .cpu_present_to_apicid = bigsmp_cpu_present_to_apicid, | 219 | .cpu_present_to_apicid = bigsmp_cpu_present_to_apicid, |
225 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 220 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
226 | .setup_portio_remap = NULL, | 221 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c index 7cb73e12f784..6840681a3f14 100644 --- a/arch/x86/kernel/apic/es7000_32.c +++ b/arch/x86/kernel/apic/es7000_32.c | |||
@@ -528,18 +528,6 @@ static void es7000_apicid_to_cpu_present(int phys_apicid, physid_mask_t *retmap) | |||
528 | ++cpu_id; | 528 | ++cpu_id; |
529 | } | 529 | } |
530 | 530 | ||
531 | /* Mapping from cpu number to logical apicid */ | ||
532 | static int es7000_cpu_to_logical_apicid(int cpu) | ||
533 | { | ||
534 | #ifdef CONFIG_SMP | ||
535 | if (cpu >= nr_cpu_ids) | ||
536 | return BAD_APICID; | ||
537 | return early_per_cpu(x86_cpu_to_logical_apicid, cpu); | ||
538 | #else | ||
539 | return logical_smp_processor_id(); | ||
540 | #endif | ||
541 | } | ||
542 | |||
543 | static void es7000_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask_t *retmap) | 531 | static void es7000_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask_t *retmap) |
544 | { | 532 | { |
545 | /* For clustered we don't have a good way to do this yet - hack */ | 533 | /* For clustered we don't have a good way to do this yet - hack */ |
@@ -561,7 +549,7 @@ static unsigned int es7000_cpu_mask_to_apicid(const struct cpumask *cpumask) | |||
561 | * The cpus in the mask must all be on the apic cluster. | 549 | * The cpus in the mask must all be on the apic cluster. |
562 | */ | 550 | */ |
563 | for_each_cpu(cpu, cpumask) { | 551 | for_each_cpu(cpu, cpumask) { |
564 | int new_apicid = es7000_cpu_to_logical_apicid(cpu); | 552 | int new_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu); |
565 | 553 | ||
566 | if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) { | 554 | if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) { |
567 | WARN(1, "Not a valid mask!"); | 555 | WARN(1, "Not a valid mask!"); |
@@ -578,7 +566,7 @@ static unsigned int | |||
578 | es7000_cpu_mask_to_apicid_and(const struct cpumask *inmask, | 566 | es7000_cpu_mask_to_apicid_and(const struct cpumask *inmask, |
579 | const struct cpumask *andmask) | 567 | const struct cpumask *andmask) |
580 | { | 568 | { |
581 | int apicid = es7000_cpu_to_logical_apicid(0); | 569 | int apicid = early_per_cpu(x86_cpu_to_logical_apicid, 0); |
582 | cpumask_var_t cpumask; | 570 | cpumask_var_t cpumask; |
583 | 571 | ||
584 | if (!alloc_cpumask_var(&cpumask, GFP_ATOMIC)) | 572 | if (!alloc_cpumask_var(&cpumask, GFP_ATOMIC)) |
@@ -656,7 +644,6 @@ struct apic __refdata apic_es7000_cluster = { | |||
656 | .setup_apic_routing = es7000_setup_apic_routing, | 644 | .setup_apic_routing = es7000_setup_apic_routing, |
657 | .multi_timer_check = NULL, | 645 | .multi_timer_check = NULL, |
658 | .apicid_to_node = es7000_apicid_to_node, | 646 | .apicid_to_node = es7000_apicid_to_node, |
659 | .cpu_to_logical_apicid = es7000_cpu_to_logical_apicid, | ||
660 | .cpu_present_to_apicid = es7000_cpu_present_to_apicid, | 647 | .cpu_present_to_apicid = es7000_cpu_present_to_apicid, |
661 | .apicid_to_cpu_present = es7000_apicid_to_cpu_present, | 648 | .apicid_to_cpu_present = es7000_apicid_to_cpu_present, |
662 | .setup_portio_remap = NULL, | 649 | .setup_portio_remap = NULL, |
@@ -721,7 +708,6 @@ struct apic __refdata apic_es7000 = { | |||
721 | .setup_apic_routing = es7000_setup_apic_routing, | 708 | .setup_apic_routing = es7000_setup_apic_routing, |
722 | .multi_timer_check = NULL, | 709 | .multi_timer_check = NULL, |
723 | .apicid_to_node = es7000_apicid_to_node, | 710 | .apicid_to_node = es7000_apicid_to_node, |
724 | .cpu_to_logical_apicid = es7000_cpu_to_logical_apicid, | ||
725 | .cpu_present_to_apicid = es7000_cpu_present_to_apicid, | 711 | .cpu_present_to_apicid = es7000_cpu_present_to_apicid, |
726 | .apicid_to_cpu_present = es7000_apicid_to_cpu_present, | 712 | .apicid_to_cpu_present = es7000_apicid_to_cpu_present, |
727 | .setup_portio_remap = NULL, | 713 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/numaq_32.c b/arch/x86/kernel/apic/numaq_32.c index 4ed90c4882e9..2b434d579e15 100644 --- a/arch/x86/kernel/apic/numaq_32.c +++ b/arch/x86/kernel/apic/numaq_32.c | |||
@@ -373,13 +373,6 @@ static inline void numaq_ioapic_phys_id_map(physid_mask_t *phys_map, physid_mask | |||
373 | return physids_promote(0xFUL, retmap); | 373 | return physids_promote(0xFUL, retmap); |
374 | } | 374 | } |
375 | 375 | ||
376 | static inline int numaq_cpu_to_logical_apicid(int cpu) | ||
377 | { | ||
378 | if (cpu >= nr_cpu_ids) | ||
379 | return BAD_APICID; | ||
380 | return early_per_cpu(x86_cpu_to_logical_apicid, cpu); | ||
381 | } | ||
382 | |||
383 | /* | 376 | /* |
384 | * Supporting over 60 cpus on NUMA-Q requires a locality-dependent | 377 | * Supporting over 60 cpus on NUMA-Q requires a locality-dependent |
385 | * cpu to APIC ID relation to properly interact with the intelligent | 378 | * cpu to APIC ID relation to properly interact with the intelligent |
@@ -509,7 +502,6 @@ struct apic __refdata apic_numaq = { | |||
509 | .setup_apic_routing = numaq_setup_apic_routing, | 502 | .setup_apic_routing = numaq_setup_apic_routing, |
510 | .multi_timer_check = numaq_multi_timer_check, | 503 | .multi_timer_check = numaq_multi_timer_check, |
511 | .apicid_to_node = numaq_apicid_to_node, | 504 | .apicid_to_node = numaq_apicid_to_node, |
512 | .cpu_to_logical_apicid = numaq_cpu_to_logical_apicid, | ||
513 | .cpu_present_to_apicid = numaq_cpu_present_to_apicid, | 505 | .cpu_present_to_apicid = numaq_cpu_present_to_apicid, |
514 | .apicid_to_cpu_present = numaq_apicid_to_cpu_present, | 506 | .apicid_to_cpu_present = numaq_apicid_to_cpu_present, |
515 | .setup_portio_remap = numaq_setup_portio_remap, | 507 | .setup_portio_remap = numaq_setup_portio_remap, |
diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c index 99d2fe016084..24a68281101b 100644 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c | |||
@@ -131,7 +131,6 @@ struct apic apic_default = { | |||
131 | .setup_apic_routing = setup_apic_flat_routing, | 131 | .setup_apic_routing = setup_apic_flat_routing, |
132 | .multi_timer_check = NULL, | 132 | .multi_timer_check = NULL, |
133 | .apicid_to_node = default_apicid_to_node, | 133 | .apicid_to_node = default_apicid_to_node, |
134 | .cpu_to_logical_apicid = default_cpu_to_logical_apicid, | ||
135 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 134 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
136 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 135 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
137 | .setup_portio_remap = NULL, | 136 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/summit_32.c b/arch/x86/kernel/apic/summit_32.c index 82cfc3ea70d1..1ef4c14f4d6b 100644 --- a/arch/x86/kernel/apic/summit_32.c +++ b/arch/x86/kernel/apic/summit_32.c | |||
@@ -241,18 +241,6 @@ static int summit_apicid_to_node(int logical_apicid) | |||
241 | #endif | 241 | #endif |
242 | } | 242 | } |
243 | 243 | ||
244 | /* Mapping from cpu number to logical apicid */ | ||
245 | static inline int summit_cpu_to_logical_apicid(int cpu) | ||
246 | { | ||
247 | #ifdef CONFIG_SMP | ||
248 | if (cpu >= nr_cpu_ids) | ||
249 | return BAD_APICID; | ||
250 | return early_per_cpu(x86_cpu_to_logical_apicid, cpu); | ||
251 | #else | ||
252 | return logical_smp_processor_id(); | ||
253 | #endif | ||
254 | } | ||
255 | |||
256 | static int summit_cpu_present_to_apicid(int mps_cpu) | 244 | static int summit_cpu_present_to_apicid(int mps_cpu) |
257 | { | 245 | { |
258 | if (mps_cpu < nr_cpu_ids) | 246 | if (mps_cpu < nr_cpu_ids) |
@@ -286,7 +274,7 @@ static unsigned int summit_cpu_mask_to_apicid(const struct cpumask *cpumask) | |||
286 | * The cpus in the mask must all be on the apic cluster. | 274 | * The cpus in the mask must all be on the apic cluster. |
287 | */ | 275 | */ |
288 | for_each_cpu(cpu, cpumask) { | 276 | for_each_cpu(cpu, cpumask) { |
289 | int new_apicid = summit_cpu_to_logical_apicid(cpu); | 277 | int new_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu); |
290 | 278 | ||
291 | if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) { | 279 | if (round && APIC_CLUSTER(apicid) != APIC_CLUSTER(new_apicid)) { |
292 | printk("%s: Not a valid mask!\n", __func__); | 280 | printk("%s: Not a valid mask!\n", __func__); |
@@ -301,7 +289,7 @@ static unsigned int summit_cpu_mask_to_apicid(const struct cpumask *cpumask) | |||
301 | static unsigned int summit_cpu_mask_to_apicid_and(const struct cpumask *inmask, | 289 | static unsigned int summit_cpu_mask_to_apicid_and(const struct cpumask *inmask, |
302 | const struct cpumask *andmask) | 290 | const struct cpumask *andmask) |
303 | { | 291 | { |
304 | int apicid = summit_cpu_to_logical_apicid(0); | 292 | int apicid = early_per_cpu(x86_cpu_to_logical_apicid, 0); |
305 | cpumask_var_t cpumask; | 293 | cpumask_var_t cpumask; |
306 | 294 | ||
307 | if (!alloc_cpumask_var(&cpumask, GFP_ATOMIC)) | 295 | if (!alloc_cpumask_var(&cpumask, GFP_ATOMIC)) |
@@ -529,7 +517,6 @@ struct apic apic_summit = { | |||
529 | .setup_apic_routing = summit_setup_apic_routing, | 517 | .setup_apic_routing = summit_setup_apic_routing, |
530 | .multi_timer_check = NULL, | 518 | .multi_timer_check = NULL, |
531 | .apicid_to_node = summit_apicid_to_node, | 519 | .apicid_to_node = summit_apicid_to_node, |
532 | .cpu_to_logical_apicid = summit_cpu_to_logical_apicid, | ||
533 | .cpu_present_to_apicid = summit_cpu_present_to_apicid, | 520 | .cpu_present_to_apicid = summit_cpu_present_to_apicid, |
534 | .apicid_to_cpu_present = summit_apicid_to_cpu_present, | 521 | .apicid_to_cpu_present = summit_apicid_to_cpu_present, |
535 | .setup_portio_remap = NULL, | 522 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c index cf69c59f4910..badc1fdbea27 100644 --- a/arch/x86/kernel/apic/x2apic_cluster.c +++ b/arch/x86/kernel/apic/x2apic_cluster.c | |||
@@ -207,7 +207,6 @@ struct apic apic_x2apic_cluster = { | |||
207 | .setup_apic_routing = NULL, | 207 | .setup_apic_routing = NULL, |
208 | .multi_timer_check = NULL, | 208 | .multi_timer_check = NULL, |
209 | .apicid_to_node = NULL, | 209 | .apicid_to_node = NULL, |
210 | .cpu_to_logical_apicid = NULL, | ||
211 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 210 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
212 | .apicid_to_cpu_present = NULL, | 211 | .apicid_to_cpu_present = NULL, |
213 | .setup_portio_remap = NULL, | 212 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c index 8972f38c5ced..f28bf4c5faf2 100644 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c | |||
@@ -196,7 +196,6 @@ struct apic apic_x2apic_phys = { | |||
196 | .setup_apic_routing = NULL, | 196 | .setup_apic_routing = NULL, |
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, | ||
200 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 199 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
201 | .apicid_to_cpu_present = NULL, | 200 | .apicid_to_cpu_present = NULL, |
202 | .setup_portio_remap = NULL, | 201 | .setup_portio_remap = NULL, |
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index bd16b58b8850..60276206b725 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c | |||
@@ -339,7 +339,6 @@ struct apic __refdata apic_x2apic_uv_x = { | |||
339 | .setup_apic_routing = NULL, | 339 | .setup_apic_routing = NULL, |
340 | .multi_timer_check = NULL, | 340 | .multi_timer_check = NULL, |
341 | .apicid_to_node = NULL, | 341 | .apicid_to_node = NULL, |
342 | .cpu_to_logical_apicid = NULL, | ||
343 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 342 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
344 | .apicid_to_cpu_present = NULL, | 343 | .apicid_to_cpu_present = NULL, |
345 | .setup_portio_remap = NULL, | 344 | .setup_portio_remap = NULL, |