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/include/asm/apic.h | |
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/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 7 |
1 files changed, 0 insertions, 7 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)) |