diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2009-01-03 05:18:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-04 07:23:00 -0500 |
commit | f4f21b716bb997dcafca622d9e232f855a64c7b6 (patch) | |
tree | 154e8cdaf2d60b94a374ce7afd91eaf137e8afb5 /arch/x86/kernel/mpparse.c | |
parent | 00fb8606e5621a79ca2fe788e461fe8a59eb1450 (diff) |
x86: rename mpc_config_processor to mpc_cpu
Impact: cleanup, solve 80 columns wrap problems
mpc_config_processor should be renamed to mpc_cpu.
The reason: the 'c' in MPC already means 'config' -
no need to repeat that in the type name.
Plus 'processor' is a lot longer than 'cpu' - so we try to use 'cpu' in all
type names, as much as possible.
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 10 |
1 files changed, 4 insertions, 6 deletions
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; |