diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-17 10:28:46 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-17 11:53:57 -0500 |
commit | be163a159b223e94b3180afdd47a8d468eb9a492 (patch) | |
tree | d071a8b0a6d56e84c274bc9a2b1f7d302b0ed524 /arch | |
parent | ab6fb7c0b03e2c3286f316c840347be8b9ee3d9f (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')
-rw-r--r-- | arch/x86/include/asm/apic.h | 18 | ||||
-rw-r--r-- | arch/x86/include/asm/setup.h | 2 | ||||
-rw-r--r-- | arch/x86/kernel/bigsmp_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/es7000_32.c | 10 | ||||
-rw-r--r-- | arch/x86/kernel/genapic_64.c | 18 | ||||
-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/numaq_32.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/probe_32.c | 36 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/summit_32.c | 2 |
13 files changed, 54 insertions, 54 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 122d8eda275f..dce1bf696cca 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -248,7 +248,7 @@ static inline void disable_local_APIC(void) { } | |||
248 | * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and | 248 | * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and |
249 | * James Cleverdon. | 249 | * James Cleverdon. |
250 | */ | 250 | */ |
251 | struct genapic { | 251 | struct apic { |
252 | char *name; | 252 | char *name; |
253 | 253 | ||
254 | int (*probe)(void); | 254 | int (*probe)(void); |
@@ -283,7 +283,7 @@ struct genapic { | |||
283 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); | 283 | int (*phys_pkg_id)(int cpuid_apic, int index_msb); |
284 | 284 | ||
285 | /* | 285 | /* |
286 | * When one of the next two hooks returns 1 the genapic | 286 | * When one of the next two hooks returns 1 the apic |
287 | * is switched to this. Essentially they are additional | 287 | * is switched to this. Essentially they are additional |
288 | * probe functions: | 288 | * probe functions: |
289 | */ | 289 | */ |
@@ -324,7 +324,7 @@ struct genapic { | |||
324 | u32 (*safe_wait_icr_idle)(void); | 324 | u32 (*safe_wait_icr_idle)(void); |
325 | }; | 325 | }; |
326 | 326 | ||
327 | extern struct genapic *apic; | 327 | extern struct apic *apic; |
328 | 328 | ||
329 | static inline u32 apic_read(u32 reg) | 329 | static inline u32 apic_read(u32 reg) |
330 | { | 330 | { |
@@ -385,17 +385,17 @@ static inline unsigned default_get_apic_id(unsigned long x) | |||
385 | #define DEFAULT_TRAMPOLINE_PHYS_HIGH 0x469 | 385 | #define DEFAULT_TRAMPOLINE_PHYS_HIGH 0x469 |
386 | 386 | ||
387 | #ifdef CONFIG_X86_32 | 387 | #ifdef CONFIG_X86_32 |
388 | extern void es7000_update_genapic_to_cluster(void); | 388 | extern void es7000_update_apic_to_cluster(void); |
389 | #else | 389 | #else |
390 | extern struct genapic apic_flat; | 390 | extern struct apic apic_flat; |
391 | extern struct genapic apic_physflat; | 391 | extern struct apic apic_physflat; |
392 | extern struct genapic apic_x2apic_cluster; | 392 | extern struct apic apic_x2apic_cluster; |
393 | extern struct genapic apic_x2apic_phys; | 393 | extern struct apic apic_x2apic_phys; |
394 | extern int default_acpi_madt_oem_check(char *, char *); | 394 | extern int default_acpi_madt_oem_check(char *, char *); |
395 | 395 | ||
396 | extern void apic_send_IPI_self(int vector); | 396 | extern void apic_send_IPI_self(int vector); |
397 | 397 | ||
398 | extern struct genapic apic_x2apic_uv_x; | 398 | extern struct apic apic_x2apic_uv_x; |
399 | DECLARE_PER_CPU(int, x2apic_extra_bits); | 399 | DECLARE_PER_CPU(int, x2apic_extra_bits); |
400 | 400 | ||
401 | extern int default_cpu_present_to_apicid(int mps_cpu); | 401 | extern int default_cpu_present_to_apicid(int mps_cpu); |
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index c230189462a2..8029369cd6f4 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -30,7 +30,7 @@ struct x86_quirks { | |||
30 | void (*smp_read_mpc_oem)(struct mpc_oemtable *oemtable, | 30 | void (*smp_read_mpc_oem)(struct mpc_oemtable *oemtable, |
31 | unsigned short oemsize); | 31 | unsigned short oemsize); |
32 | int (*setup_ioapic_ids)(void); | 32 | int (*setup_ioapic_ids)(void); |
33 | int (*update_genapic)(void); | 33 | int (*update_apic)(void); |
34 | }; | 34 | }; |
35 | 35 | ||
36 | #endif /* __ASSEMBLY__ */ | 36 | #endif /* __ASSEMBLY__ */ |
diff --git a/arch/x86/kernel/bigsmp_32.c b/arch/x86/kernel/bigsmp_32.c index 17c25bc26a59..0b1093394fdf 100644 --- a/arch/x86/kernel/bigsmp_32.c +++ b/arch/x86/kernel/bigsmp_32.c | |||
@@ -210,7 +210,7 @@ static int probe_bigsmp(void) | |||
210 | return dmi_bigsmp; | 210 | return dmi_bigsmp; |
211 | } | 211 | } |
212 | 212 | ||
213 | struct genapic apic_bigsmp = { | 213 | struct apic apic_bigsmp = { |
214 | 214 | ||
215 | .name = "bigsmp", | 215 | .name = "bigsmp", |
216 | .probe = probe_bigsmp, | 216 | .probe = probe_bigsmp, |
diff --git a/arch/x86/kernel/es7000_32.c b/arch/x86/kernel/es7000_32.c index 1d6e99a8edc4..320f2d2e4e54 100644 --- a/arch/x86/kernel/es7000_32.c +++ b/arch/x86/kernel/es7000_32.c | |||
@@ -163,14 +163,14 @@ static int wakeup_secondary_cpu_via_mip(int cpu, unsigned long eip) | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | static int __init es7000_update_genapic(void) | 166 | static int __init es7000_update_apic(void) |
167 | { | 167 | { |
168 | apic->wakeup_cpu = wakeup_secondary_cpu_via_mip; | 168 | apic->wakeup_cpu = wakeup_secondary_cpu_via_mip; |
169 | 169 | ||
170 | /* MPENTIUMIII */ | 170 | /* MPENTIUMIII */ |
171 | if (boot_cpu_data.x86 == 6 && | 171 | if (boot_cpu_data.x86 == 6 && |
172 | (boot_cpu_data.x86_model >= 7 || boot_cpu_data.x86_model <= 11)) { | 172 | (boot_cpu_data.x86_model >= 7 || boot_cpu_data.x86_model <= 11)) { |
173 | es7000_update_genapic_to_cluster(); | 173 | es7000_update_apic_to_cluster(); |
174 | apic->wait_for_init_deassert = NULL; | 174 | apic->wait_for_init_deassert = NULL; |
175 | apic->wakeup_cpu = wakeup_secondary_cpu_via_mip; | 175 | apic->wakeup_cpu = wakeup_secondary_cpu_via_mip; |
176 | } | 176 | } |
@@ -193,7 +193,7 @@ static void __init setup_unisys(void) | |||
193 | es7000_plat = ES7000_CLASSIC; | 193 | es7000_plat = ES7000_CLASSIC; |
194 | ioapic_renumber_irq = es7000_rename_gsi; | 194 | ioapic_renumber_irq = es7000_rename_gsi; |
195 | 195 | ||
196 | x86_quirks->update_genapic = es7000_update_genapic; | 196 | x86_quirks->update_apic = es7000_update_apic; |
197 | } | 197 | } |
198 | 198 | ||
199 | /* | 199 | /* |
@@ -659,7 +659,7 @@ static int es7000_phys_pkg_id(int cpuid_apic, int index_msb) | |||
659 | return cpuid_apic >> index_msb; | 659 | return cpuid_apic >> index_msb; |
660 | } | 660 | } |
661 | 661 | ||
662 | void __init es7000_update_genapic_to_cluster(void) | 662 | void __init es7000_update_apic_to_cluster(void) |
663 | { | 663 | { |
664 | apic->target_cpus = target_cpus_cluster; | 664 | apic->target_cpus = target_cpus_cluster; |
665 | apic->irq_delivery_mode = dest_LowestPrio; | 665 | apic->irq_delivery_mode = dest_LowestPrio; |
@@ -691,7 +691,7 @@ es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) | |||
691 | } | 691 | } |
692 | 692 | ||
693 | 693 | ||
694 | struct genapic apic_es7000 = { | 694 | struct apic apic_es7000 = { |
695 | 695 | ||
696 | .name = "es7000", | 696 | .name = "es7000", |
697 | .probe = probe_es7000, | 697 | .probe = probe_es7000, |
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c index 91cae6f6e730..70935dd904db 100644 --- a/arch/x86/kernel/genapic_64.c +++ b/arch/x86/kernel/genapic_64.c | |||
@@ -23,16 +23,16 @@ | |||
23 | #include <asm/ipi.h> | 23 | #include <asm/ipi.h> |
24 | #include <asm/setup.h> | 24 | #include <asm/setup.h> |
25 | 25 | ||
26 | extern struct genapic apic_flat; | 26 | extern struct apic apic_flat; |
27 | extern struct genapic apic_physflat; | 27 | extern struct apic apic_physflat; |
28 | extern struct genapic apic_x2xpic_uv_x; | 28 | extern struct apic apic_x2xpic_uv_x; |
29 | extern struct genapic apic_x2apic_phys; | 29 | extern struct apic apic_x2apic_phys; |
30 | extern struct genapic apic_x2apic_cluster; | 30 | extern struct apic apic_x2apic_cluster; |
31 | 31 | ||
32 | struct genapic __read_mostly *apic = &apic_flat; | 32 | struct apic __read_mostly *apic = &apic_flat; |
33 | EXPORT_SYMBOL_GPL(apic); | 33 | EXPORT_SYMBOL_GPL(apic); |
34 | 34 | ||
35 | static struct genapic *apic_probe[] __initdata = { | 35 | static struct apic *apic_probe[] __initdata = { |
36 | #ifdef CONFIG_X86_UV | 36 | #ifdef CONFIG_X86_UV |
37 | &apic_x2apic_uv_x, | 37 | &apic_x2apic_uv_x, |
38 | #endif | 38 | #endif |
@@ -62,8 +62,8 @@ void __init default_setup_apic_routing(void) | |||
62 | printk(KERN_INFO "Setting APIC routing to %s\n", apic->name); | 62 | printk(KERN_INFO "Setting APIC routing to %s\n", apic->name); |
63 | } | 63 | } |
64 | 64 | ||
65 | if (x86_quirks->update_genapic) | 65 | if (x86_quirks->update_apic) |
66 | x86_quirks->update_genapic(); | 66 | x86_quirks->update_apic(); |
67 | } | 67 | } |
68 | 68 | ||
69 | /* Same for both flat and physical. */ | 69 | /* Same for both flat and physical. */ |
diff --git a/arch/x86/kernel/genapic_flat_64.c b/arch/x86/kernel/genapic_flat_64.c index 27b81208009a..3b002995e145 100644 --- a/arch/x86/kernel/genapic_flat_64.c +++ b/arch/x86/kernel/genapic_flat_64.c | |||
@@ -178,7 +178,7 @@ static int flat_phys_pkg_id(int initial_apic_id, int index_msb) | |||
178 | return hard_smp_processor_id() >> index_msb; | 178 | return hard_smp_processor_id() >> index_msb; |
179 | } | 179 | } |
180 | 180 | ||
181 | struct genapic apic_flat = { | 181 | struct apic apic_flat = { |
182 | .name = "flat", | 182 | .name = "flat", |
183 | .probe = NULL, | 183 | .probe = NULL, |
184 | .acpi_madt_oem_check = flat_acpi_madt_oem_check, | 184 | .acpi_madt_oem_check = flat_acpi_madt_oem_check, |
@@ -327,7 +327,7 @@ physflat_cpu_mask_to_apicid_and(const struct cpumask *cpumask, | |||
327 | return BAD_APICID; | 327 | return BAD_APICID; |
328 | } | 328 | } |
329 | 329 | ||
330 | struct genapic apic_physflat = { | 330 | struct apic apic_physflat = { |
331 | 331 | ||
332 | .name = "physical flat", | 332 | .name = "physical flat", |
333 | .probe = NULL, | 333 | .probe = NULL, |
diff --git a/arch/x86/kernel/genx2apic_cluster.c b/arch/x86/kernel/genx2apic_cluster.c index b9ef0091c4d7..4e39d9ad4d52 100644 --- a/arch/x86/kernel/genx2apic_cluster.c +++ b/arch/x86/kernel/genx2apic_cluster.c | |||
@@ -182,7 +182,7 @@ static void init_x2apic_ldr(void) | |||
182 | per_cpu(x86_cpu_to_logical_apicid, cpu) = apic_read(APIC_LDR); | 182 | per_cpu(x86_cpu_to_logical_apicid, cpu) = apic_read(APIC_LDR); |
183 | } | 183 | } |
184 | 184 | ||
185 | struct genapic apic_x2apic_cluster = { | 185 | struct apic apic_x2apic_cluster = { |
186 | 186 | ||
187 | .name = "cluster x2apic", | 187 | .name = "cluster x2apic", |
188 | .probe = NULL, | 188 | .probe = NULL, |
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c index bb752015776d..d2d52eb9f7ea 100644 --- a/arch/x86/kernel/genx2apic_phys.c +++ b/arch/x86/kernel/genx2apic_phys.c | |||
@@ -168,7 +168,7 @@ static void init_x2apic_ldr(void) | |||
168 | { | 168 | { |
169 | } | 169 | } |
170 | 170 | ||
171 | struct genapic apic_x2apic_phys = { | 171 | struct apic apic_x2apic_phys = { |
172 | 172 | ||
173 | .name = "physical x2apic", | 173 | .name = "physical x2apic", |
174 | .probe = NULL, | 174 | .probe = NULL, |
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c index dcb8c14287d8..20b4ad07c3a1 100644 --- a/arch/x86/kernel/genx2apic_uv_x.c +++ b/arch/x86/kernel/genx2apic_uv_x.c | |||
@@ -240,7 +240,7 @@ static void uv_send_IPI_self(int vector) | |||
240 | apic_write(APIC_SELF_IPI, vector); | 240 | apic_write(APIC_SELF_IPI, vector); |
241 | } | 241 | } |
242 | 242 | ||
243 | struct genapic apic_x2apic_uv_x = { | 243 | struct apic apic_x2apic_uv_x = { |
244 | 244 | ||
245 | .name = "UV large system", | 245 | .name = "UV large system", |
246 | .probe = NULL, | 246 | .probe = NULL, |
diff --git a/arch/x86/kernel/numaq_32.c b/arch/x86/kernel/numaq_32.c index a709de87819d..d9d6d61eed82 100644 --- a/arch/x86/kernel/numaq_32.c +++ b/arch/x86/kernel/numaq_32.c | |||
@@ -256,7 +256,7 @@ static int __init numaq_setup_ioapic_ids(void) | |||
256 | return 1; | 256 | return 1; |
257 | } | 257 | } |
258 | 258 | ||
259 | static int __init numaq_update_genapic(void) | 259 | static int __init numaq_update_apic(void) |
260 | { | 260 | { |
261 | apic->wakeup_cpu = wakeup_secondary_cpu_via_nmi; | 261 | apic->wakeup_cpu = wakeup_secondary_cpu_via_nmi; |
262 | 262 | ||
@@ -278,7 +278,7 @@ static struct x86_quirks numaq_x86_quirks __initdata = { | |||
278 | .mpc_oem_pci_bus = mpc_oem_pci_bus, | 278 | .mpc_oem_pci_bus = mpc_oem_pci_bus, |
279 | .smp_read_mpc_oem = smp_read_mpc_oem, | 279 | .smp_read_mpc_oem = smp_read_mpc_oem, |
280 | .setup_ioapic_ids = numaq_setup_ioapic_ids, | 280 | .setup_ioapic_ids = numaq_setup_ioapic_ids, |
281 | .update_genapic = numaq_update_genapic, | 281 | .update_apic = numaq_update_apic, |
282 | }; | 282 | }; |
283 | 283 | ||
284 | static __init void early_check_numaq(void) | 284 | static __init void early_check_numaq(void) |
@@ -500,7 +500,7 @@ static void numaq_setup_portio_remap(void) | |||
500 | (u_long) xquad_portio, (u_long) num_quads*XQUAD_PORTIO_QUAD); | 500 | (u_long) xquad_portio, (u_long) num_quads*XQUAD_PORTIO_QUAD); |
501 | } | 501 | } |
502 | 502 | ||
503 | struct genapic apic_numaq = { | 503 | struct apic apic_numaq = { |
504 | 504 | ||
505 | .name = "NUMAQ", | 505 | .name = "NUMAQ", |
506 | .probe = probe_numaq, | 506 | .probe = probe_numaq, |
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 | ||
81 | struct genapic apic_default = { | 81 | struct 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 | ||
144 | extern struct genapic apic_numaq; | 144 | extern struct apic apic_numaq; |
145 | extern struct genapic apic_summit; | 145 | extern struct apic apic_summit; |
146 | extern struct genapic apic_bigsmp; | 146 | extern struct apic apic_bigsmp; |
147 | extern struct genapic apic_es7000; | 147 | extern struct apic apic_es7000; |
148 | extern struct genapic apic_default; | 148 | extern struct apic apic_default; |
149 | 149 | ||
150 | struct genapic *apic = &apic_default; | 150 | struct apic *apic = &apic_default; |
151 | EXPORT_SYMBOL_GPL(apic); | 151 | EXPORT_SYMBOL_GPL(apic); |
152 | 152 | ||
153 | static struct genapic *apic_probe[] __initdata = { | 153 | static 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 | } |
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index b2da0b1d15e7..6b588d6b3889 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -599,7 +599,7 @@ static int __init setup_elfcorehdr(char *arg) | |||
599 | early_param("elfcorehdr", setup_elfcorehdr); | 599 | early_param("elfcorehdr", setup_elfcorehdr); |
600 | #endif | 600 | #endif |
601 | 601 | ||
602 | static int __init default_update_genapic(void) | 602 | static int __init default_update_apic(void) |
603 | { | 603 | { |
604 | #ifdef CONFIG_SMP | 604 | #ifdef CONFIG_SMP |
605 | if (!apic->wakeup_cpu) | 605 | if (!apic->wakeup_cpu) |
@@ -610,7 +610,7 @@ static int __init default_update_genapic(void) | |||
610 | } | 610 | } |
611 | 611 | ||
612 | static struct x86_quirks default_x86_quirks __initdata = { | 612 | static struct x86_quirks default_x86_quirks __initdata = { |
613 | .update_genapic = default_update_genapic, | 613 | .update_apic = default_update_apic, |
614 | }; | 614 | }; |
615 | 615 | ||
616 | struct x86_quirks *x86_quirks __initdata = &default_x86_quirks; | 616 | struct x86_quirks *x86_quirks __initdata = &default_x86_quirks; |
diff --git a/arch/x86/kernel/summit_32.c b/arch/x86/kernel/summit_32.c index 8f1a11b072a7..cfe7b09015d8 100644 --- a/arch/x86/kernel/summit_32.c +++ b/arch/x86/kernel/summit_32.c | |||
@@ -537,7 +537,7 @@ void __init setup_summit(void) | |||
537 | } | 537 | } |
538 | #endif | 538 | #endif |
539 | 539 | ||
540 | struct genapic apic_summit = { | 540 | struct apic apic_summit = { |
541 | 541 | ||
542 | .name = "summit", | 542 | .name = "summit", |
543 | .probe = probe_summit, | 543 | .probe = probe_summit, |