aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/probe_32.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-17 10:28:46 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-17 11:53:57 -0500
commitbe163a159b223e94b3180afdd47a8d468eb9a492 (patch)
treed071a8b0a6d56e84c274bc9a2b1f7d302b0ed524 /arch/x86/kernel/probe_32.c
parentab6fb7c0b03e2c3286f316c840347be8b9ee3d9f (diff)
x86, apic: rename 'genapic' to 'apic'
Impact: cleanup Now that all APIC code is consolidated there's nothing 'gen' about apics anymore - so rename 'struct genapic' to 'struct apic'. This shortens the code and is nicer to read as well. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/probe_32.c')
-rw-r--r--arch/x86/kernel/probe_32.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/arch/x86/kernel/probe_32.c b/arch/x86/kernel/probe_32.c
index 5914ffb6e408..5fa48332c5c8 100644
--- a/arch/x86/kernel/probe_32.c
+++ b/arch/x86/kernel/probe_32.c
@@ -78,7 +78,7 @@ static int probe_default(void)
78 return 1; 78 return 1;
79} 79}
80 80
81struct genapic apic_default = { 81struct apic apic_default = {
82 82
83 .name = "default", 83 .name = "default",
84 .probe = probe_default, 84 .probe = probe_default,
@@ -141,16 +141,16 @@ struct genapic apic_default = {
141 .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, 141 .safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
142}; 142};
143 143
144extern struct genapic apic_numaq; 144extern struct apic apic_numaq;
145extern struct genapic apic_summit; 145extern struct apic apic_summit;
146extern struct genapic apic_bigsmp; 146extern struct apic apic_bigsmp;
147extern struct genapic apic_es7000; 147extern struct apic apic_es7000;
148extern struct genapic apic_default; 148extern struct apic apic_default;
149 149
150struct genapic *apic = &apic_default; 150struct apic *apic = &apic_default;
151EXPORT_SYMBOL_GPL(apic); 151EXPORT_SYMBOL_GPL(apic);
152 152
153static struct genapic *apic_probe[] __initdata = { 153static struct apic *apic_probe[] __initdata = {
154#ifdef CONFIG_X86_NUMAQ 154#ifdef CONFIG_X86_NUMAQ
155 &apic_numaq, 155 &apic_numaq,
156#endif 156#endif
@@ -183,8 +183,8 @@ static int __init parse_apic(char *arg)
183 } 183 }
184 } 184 }
185 185
186 if (x86_quirks->update_genapic) 186 if (x86_quirks->update_apic)
187 x86_quirks->update_genapic(); 187 x86_quirks->update_apic();
188 188
189 /* Parsed again by __setup for debug/verbose */ 189 /* Parsed again by __setup for debug/verbose */
190 return 0; 190 return 0;
@@ -204,8 +204,8 @@ void __init generic_bigsmp_probe(void)
204 if (!cmdline_apic && apic == &apic_default) { 204 if (!cmdline_apic && apic == &apic_default) {
205 if (apic_bigsmp.probe()) { 205 if (apic_bigsmp.probe()) {
206 apic = &apic_bigsmp; 206 apic = &apic_bigsmp;
207 if (x86_quirks->update_genapic) 207 if (x86_quirks->update_apic)
208 x86_quirks->update_genapic(); 208 x86_quirks->update_apic();
209 printk(KERN_INFO "Overriding APIC driver with %s\n", 209 printk(KERN_INFO "Overriding APIC driver with %s\n",
210 apic->name); 210 apic->name);
211 } 211 }
@@ -227,8 +227,8 @@ void __init generic_apic_probe(void)
227 if (!apic_probe[i]) 227 if (!apic_probe[i])
228 panic("Didn't find an APIC driver"); 228 panic("Didn't find an APIC driver");
229 229
230 if (x86_quirks->update_genapic) 230 if (x86_quirks->update_apic)
231 x86_quirks->update_genapic(); 231 x86_quirks->update_apic();
232 } 232 }
233 printk(KERN_INFO "Using APIC driver %s\n", apic->name); 233 printk(KERN_INFO "Using APIC driver %s\n", apic->name);
234} 234}
@@ -248,8 +248,8 @@ generic_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
248 248
249 if (!cmdline_apic) { 249 if (!cmdline_apic) {
250 apic = apic_probe[i]; 250 apic = apic_probe[i];
251 if (x86_quirks->update_genapic) 251 if (x86_quirks->update_apic)
252 x86_quirks->update_genapic(); 252 x86_quirks->update_apic();
253 printk(KERN_INFO "Switched to APIC driver `%s'.\n", 253 printk(KERN_INFO "Switched to APIC driver `%s'.\n",
254 apic->name); 254 apic->name);
255 } 255 }
@@ -270,8 +270,8 @@ int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
270 270
271 if (!cmdline_apic) { 271 if (!cmdline_apic) {
272 apic = apic_probe[i]; 272 apic = apic_probe[i];
273 if (x86_quirks->update_genapic) 273 if (x86_quirks->update_apic)
274 x86_quirks->update_genapic(); 274 x86_quirks->update_apic();
275 printk(KERN_INFO "Switched to APIC driver `%s'.\n", 275 printk(KERN_INFO "Switched to APIC driver `%s'.\n",
276 apic->name); 276 apic->name);
277 } 277 }