aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/genapic.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-27 21:18:13 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:11 -0500
commit9a6801da55e4a4492e8f666ac272efe8186682c8 (patch)
treed1d10af7e0e2bc498f36c134c180d2f7f9f7138a /arch/x86/include/asm/genapic.h
parent491a50c4fbcf6cc39a702a16a2dfaf42f0eb8058 (diff)
x86: remove APIC_INIT / APICFUNC / IPIFUNC
The APIC_INIT() / APICFUNC / IPIFUNC macros were ugly and obfuscated the true identity of various APIC driver methods. Now that they are not used anymore, remove them. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/genapic.h')
-rw-r--r--arch/x86/include/asm/genapic.h63
1 files changed, 2 insertions, 61 deletions
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h
index 3970da3245c8..26c5e824a717 100644
--- a/arch/x86/include/asm/genapic.h
+++ b/arch/x86/include/asm/genapic.h
@@ -97,66 +97,8 @@ struct genapic {
97extern struct genapic *apic; 97extern struct genapic *apic;
98 98
99#ifdef CONFIG_X86_32 99#ifdef CONFIG_X86_32
100
101#define APICFUNC(x) .x = x,
102
103/* More functions could be probably marked IPIFUNC and save some space
104 in UP GENERICARCH kernels, but I don't have the nerve right now
105 to untangle this mess. -AK */
106#ifdef CONFIG_SMP
107#define IPIFUNC(x) APICFUNC(x)
108#else
109#define IPIFUNC(x)
110#endif
111
112#define APIC_INIT(aname, aprobe) \
113{ \
114 .name = aname, \
115 .probe = aprobe, \
116 .int_delivery_mode = INT_DELIVERY_MODE, \
117 .int_dest_mode = INT_DEST_MODE, \
118 .no_balance_irq = NO_BALANCE_IRQ, \
119 .ESR_DISABLE = esr_disable, \
120 .apic_destination_logical = APIC_DEST_LOGICAL, \
121 APICFUNC(apic_id_registered) \
122 APICFUNC(target_cpus) \
123 APICFUNC(check_apicid_used) \
124 APICFUNC(check_apicid_present) \
125 APICFUNC(init_apic_ldr) \
126 APICFUNC(ioapic_phys_id_map) \
127 APICFUNC(setup_apic_routing) \
128 APICFUNC(multi_timer_check) \
129 APICFUNC(apicid_to_node) \
130 APICFUNC(cpu_to_logical_apicid) \
131 APICFUNC(cpu_present_to_apicid) \
132 APICFUNC(apicid_to_cpu_present) \
133 APICFUNC(setup_portio_remap) \
134 APICFUNC(check_phys_apicid_present) \
135 APICFUNC(mps_oem_check) \
136 APICFUNC(get_apic_id) \
137 .apic_id_mask = APIC_ID_MASK, \
138 APICFUNC(cpu_mask_to_apicid) \
139 APICFUNC(cpu_mask_to_apicid_and) \
140 APICFUNC(vector_allocation_domain) \
141 APICFUNC(acpi_madt_oem_check) \
142 IPIFUNC(send_IPI_mask) \
143 IPIFUNC(send_IPI_allbutself) \
144 IPIFUNC(send_IPI_all) \
145 APICFUNC(enable_apic_mode) \
146 APICFUNC(phys_pkg_id) \
147 .trampoline_phys_low = TRAMPOLINE_PHYS_LOW, \
148 .trampoline_phys_high = TRAMPOLINE_PHYS_HIGH, \
149 APICFUNC(wait_for_init_deassert) \
150 APICFUNC(smp_callin_clear_local_apic) \
151 APICFUNC(store_NMI_vector) \
152 APICFUNC(restore_NMI_vector) \
153 APICFUNC(inquire_remote_apic) \
154}
155
156extern void es7000_update_genapic_to_cluster(void); 100extern void es7000_update_genapic_to_cluster(void);
157 101#else
158#else /* CONFIG_X86_64: */
159
160extern struct genapic apic_flat; 102extern struct genapic apic_flat;
161extern struct genapic apic_physflat; 103extern struct genapic apic_physflat;
162extern struct genapic apic_x2apic_cluster; 104extern struct genapic apic_x2apic_cluster;
@@ -169,7 +111,6 @@ extern struct genapic apic_x2apic_uv_x;
169DECLARE_PER_CPU(int, x2apic_extra_bits); 111DECLARE_PER_CPU(int, x2apic_extra_bits);
170 112
171extern void setup_apic_routing(void); 113extern void setup_apic_routing(void);
172 114#endif
173#endif /* CONFIG_X86_64 */
174 115
175#endif /* _ASM_X86_GENAPIC_64_H */ 116#endif /* _ASM_X86_GENAPIC_64_H */