diff options
-rw-r--r-- | arch/x86/include/asm/genapic_32.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/mpspec_def.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/setup.h | 4 | ||||
-rw-r--r-- | arch/x86/kernel/mpparse.c | 10 | ||||
-rw-r--r-- | arch/x86/kernel/numaq_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/visws_quirks.c | 4 |
6 files changed, 11 insertions, 13 deletions
diff --git a/arch/x86/include/asm/genapic_32.h b/arch/x86/include/asm/genapic_32.h index 057e2c2360f2..2c05b737ee22 100644 --- a/arch/x86/include/asm/genapic_32.h +++ b/arch/x86/include/asm/genapic_32.h | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | struct mpc_bus; | 18 | struct mpc_bus; |
19 | struct mpc_table; | 19 | struct mpc_table; |
20 | struct mpc_config_processor; | 20 | struct mpc_cpu; |
21 | 21 | ||
22 | struct genapic { | 22 | struct genapic { |
23 | char *name; | 23 | char *name; |
diff --git a/arch/x86/include/asm/mpspec_def.h b/arch/x86/include/asm/mpspec_def.h index daa3f4ab2ff3..7e8ca5136b29 100644 --- a/arch/x86/include/asm/mpspec_def.h +++ b/arch/x86/include/asm/mpspec_def.h | |||
@@ -70,7 +70,7 @@ struct mpc_table { | |||
70 | #define CPU_MODEL_MASK 0x00F0 | 70 | #define CPU_MODEL_MASK 0x00F0 |
71 | #define CPU_FAMILY_MASK 0x0F00 | 71 | #define CPU_FAMILY_MASK 0x0F00 |
72 | 72 | ||
73 | struct mpc_config_processor { | 73 | struct mpc_cpu { |
74 | unsigned char mpc_type; | 74 | unsigned char mpc_type; |
75 | unsigned char mpc_apicid; /* Local APIC number */ | 75 | unsigned char mpc_apicid; /* Local APIC number */ |
76 | unsigned char mpc_apicver; /* Its versions */ | 76 | unsigned char mpc_apicver; /* Its versions */ |
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index 26754ca35a60..8cf77ec2088a 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -25,7 +25,7 @@ extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); | |||
25 | /* | 25 | /* |
26 | * Any setup quirks to be performed? | 26 | * Any setup quirks to be performed? |
27 | */ | 27 | */ |
28 | struct mpc_config_processor; | 28 | struct mpc_cpu; |
29 | struct mpc_bus; | 29 | struct mpc_bus; |
30 | struct mp_config_oemtable; | 30 | struct mp_config_oemtable; |
31 | struct x86_quirks { | 31 | struct x86_quirks { |
@@ -39,7 +39,7 @@ struct x86_quirks { | |||
39 | int (*mach_find_smp_config)(unsigned int reserve); | 39 | int (*mach_find_smp_config)(unsigned int reserve); |
40 | 40 | ||
41 | int *mpc_record; | 41 | int *mpc_record; |
42 | int (*mpc_apic_id)(struct mpc_config_processor *m); | 42 | int (*mpc_apic_id)(struct mpc_cpu *m); |
43 | void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name); | 43 | void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name); |
44 | void (*mpc_oem_pci_bus)(struct mpc_bus *m); | 44 | void (*mpc_oem_pci_bus)(struct mpc_bus *m); |
45 | void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable, | 45 | void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable, |
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index edbd2b19c603..1ec13bb18730 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -49,7 +49,7 @@ static int __init mpf_checksum(unsigned char *mp, int len) | |||
49 | return sum & 0xFF; | 49 | return sum & 0xFF; |
50 | } | 50 | } |
51 | 51 | ||
52 | static void __init MP_processor_info(struct mpc_config_processor *m) | 52 | static void __init MP_processor_info(struct mpc_cpu *m) |
53 | { | 53 | { |
54 | int apicid; | 54 | int apicid; |
55 | char *bootup_cpu = ""; | 55 | char *bootup_cpu = ""; |
@@ -327,8 +327,7 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | |||
327 | switch (*mpt) { | 327 | switch (*mpt) { |
328 | case MP_PROCESSOR: | 328 | case MP_PROCESSOR: |
329 | { | 329 | { |
330 | struct mpc_config_processor *m = | 330 | struct mpc_cpu *m = (struct mpc_cpu *)mpt; |
331 | (struct mpc_config_processor *)mpt; | ||
332 | /* ACPI may have already provided this data */ | 331 | /* ACPI may have already provided this data */ |
333 | if (!acpi_lapic) | 332 | if (!acpi_lapic) |
334 | MP_processor_info(m); | 333 | MP_processor_info(m); |
@@ -534,7 +533,7 @@ static inline void __init construct_ioapic_table(int mpc_default_type) { } | |||
534 | 533 | ||
535 | static inline void __init construct_default_ISA_mptable(int mpc_default_type) | 534 | static inline void __init construct_default_ISA_mptable(int mpc_default_type) |
536 | { | 535 | { |
537 | struct mpc_config_processor processor; | 536 | struct mpc_cpu processor; |
538 | struct mpc_config_lintsrc lintsrc; | 537 | struct mpc_config_lintsrc lintsrc; |
539 | int linttypes[2] = { mp_ExtINT, mp_NMI }; | 538 | int linttypes[2] = { mp_ExtINT, mp_NMI }; |
540 | int i; | 539 | int i; |
@@ -858,8 +857,7 @@ static int __init replace_intsrc_all(struct mpc_table *mpc, | |||
858 | switch (*mpt) { | 857 | switch (*mpt) { |
859 | case MP_PROCESSOR: | 858 | case MP_PROCESSOR: |
860 | { | 859 | { |
861 | struct mpc_config_processor *m = | 860 | struct mpc_cpu *m = (struct mpc_cpu *)mpt; |
862 | (struct mpc_config_processor *)mpt; | ||
863 | mpt += sizeof(*m); | 861 | mpt += sizeof(*m); |
864 | count += sizeof(*m); | 862 | count += sizeof(*m); |
865 | break; | 863 | break; |
diff --git a/arch/x86/kernel/numaq_32.c b/arch/x86/kernel/numaq_32.c index 813542692777..bcc3da1644fe 100644 --- a/arch/x86/kernel/numaq_32.c +++ b/arch/x86/kernel/numaq_32.c | |||
@@ -117,7 +117,7 @@ static inline int generate_logical_apicid(int quad, int phys_apicid) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | /* x86_quirks member */ | 119 | /* x86_quirks member */ |
120 | static int mpc_apic_id(struct mpc_config_processor *m) | 120 | static int mpc_apic_id(struct mpc_cpu *m) |
121 | { | 121 | { |
122 | int quad = translation_table[mpc_record]->trans_quad; | 122 | int quad = translation_table[mpc_record]->trans_quad; |
123 | int logical_apicid = generate_logical_apicid(quad, m->mpc_apicid); | 123 | int logical_apicid = generate_logical_apicid(quad, m->mpc_apicid); |
diff --git a/arch/x86/kernel/visws_quirks.c b/arch/x86/kernel/visws_quirks.c index 0c9667f0752a..ca12afa63475 100644 --- a/arch/x86/kernel/visws_quirks.c +++ b/arch/x86/kernel/visws_quirks.c | |||
@@ -176,7 +176,7 @@ static int __init visws_get_smp_config(unsigned int early) | |||
176 | * No problem for Linux. | 176 | * No problem for Linux. |
177 | */ | 177 | */ |
178 | 178 | ||
179 | static void __init MP_processor_info(struct mpc_config_processor *m) | 179 | static void __init MP_processor_info(struct mpc_cpu *m) |
180 | { | 180 | { |
181 | int ver, logical_apicid; | 181 | int ver, logical_apicid; |
182 | physid_mask_t apic_cpus; | 182 | physid_mask_t apic_cpus; |
@@ -218,7 +218,7 @@ static void __init MP_processor_info(struct mpc_config_processor *m) | |||
218 | 218 | ||
219 | static int __init visws_find_smp_config(unsigned int reserve) | 219 | static int __init visws_find_smp_config(unsigned int reserve) |
220 | { | 220 | { |
221 | struct mpc_config_processor *mp = phys_to_virt(CO_CPU_TAB_PHYS); | 221 | struct mpc_cpu *mp = phys_to_virt(CO_CPU_TAB_PHYS); |
222 | unsigned short ncpus = readw(phys_to_virt(CO_CPU_NUM_PHYS)); | 222 | unsigned short ncpus = readw(phys_to_virt(CO_CPU_NUM_PHYS)); |
223 | 223 | ||
224 | if (ncpus > CO_CPU_MAX) { | 224 | if (ncpus > CO_CPU_MAX) { |