diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2009-01-03 05:17:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-04 07:22:59 -0500 |
commit | 00fb8606e5621a79ca2fe788e461fe8a59eb1450 (patch) | |
tree | 0ce2df639eb241fdae4ed1322b2fe685dc073ea6 /arch/x86 | |
parent | f29521e4ee394ca241df2ba546e9d671394927a2 (diff) |
x86: rename mpc_config_bus to mpc_bus
Impact: cleanup, solve 80 columns wrap problems
mpc_config_bus should be renamed to mpc_bus.
The reason: the 'c' in MPC already means 'config' -
no need to repeat that in the type name.
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-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 | 6 | ||||
-rw-r--r-- | arch/x86/kernel/mpparse.c | 12 | ||||
-rw-r--r-- | arch/x86/kernel/numaq_32.c | 4 |
5 files changed, 12 insertions, 14 deletions
diff --git a/arch/x86/include/asm/genapic_32.h b/arch/x86/include/asm/genapic_32.h index db02be008f71..057e2c2360f2 100644 --- a/arch/x86/include/asm/genapic_32.h +++ b/arch/x86/include/asm/genapic_32.h | |||
@@ -15,7 +15,7 @@ | |||
15 | * Copyright 2003 Andi Kleen, SuSE Labs. | 15 | * Copyright 2003 Andi Kleen, SuSE Labs. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | struct mpc_config_bus; | 18 | struct mpc_bus; |
19 | struct mpc_table; | 19 | struct mpc_table; |
20 | struct mpc_config_processor; | 20 | struct mpc_config_processor; |
21 | 21 | ||
diff --git a/arch/x86/include/asm/mpspec_def.h b/arch/x86/include/asm/mpspec_def.h index e260e6543b4c..daa3f4ab2ff3 100644 --- a/arch/x86/include/asm/mpspec_def.h +++ b/arch/x86/include/asm/mpspec_def.h | |||
@@ -80,7 +80,7 @@ struct mpc_config_processor { | |||
80 | unsigned int mpc_reserved[2]; | 80 | unsigned int mpc_reserved[2]; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | struct mpc_config_bus { | 83 | struct mpc_bus { |
84 | unsigned char mpc_type; | 84 | unsigned char mpc_type; |
85 | unsigned char mpc_busid; | 85 | unsigned char mpc_busid; |
86 | unsigned char mpc_bustype[6]; | 86 | unsigned char mpc_bustype[6]; |
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index 4fcd53fd5f43..26754ca35a60 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -26,7 +26,7 @@ extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); | |||
26 | * Any setup quirks to be performed? | 26 | * Any setup quirks to be performed? |
27 | */ | 27 | */ |
28 | struct mpc_config_processor; | 28 | struct mpc_config_processor; |
29 | struct mpc_config_bus; | 29 | struct mpc_bus; |
30 | struct mp_config_oemtable; | 30 | struct mp_config_oemtable; |
31 | struct x86_quirks { | 31 | struct x86_quirks { |
32 | int (*arch_pre_time_init)(void); | 32 | int (*arch_pre_time_init)(void); |
@@ -40,8 +40,8 @@ struct x86_quirks { | |||
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_config_processor *m); |
43 | void (*mpc_oem_bus_info)(struct mpc_config_bus *m, char *name); | 43 | void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name); |
44 | void (*mpc_oem_pci_bus)(struct mpc_config_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, |
46 | unsigned short oemsize); | 46 | unsigned short oemsize); |
47 | int (*setup_ioapic_ids)(void); | 47 | int (*setup_ioapic_ids)(void); |
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 154de681e8b2..edbd2b19c603 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -74,7 +74,7 @@ static void __init MP_processor_info(struct mpc_config_processor *m) | |||
74 | } | 74 | } |
75 | 75 | ||
76 | #ifdef CONFIG_X86_IO_APIC | 76 | #ifdef CONFIG_X86_IO_APIC |
77 | static void __init MP_bus_info(struct mpc_config_bus *m) | 77 | static void __init MP_bus_info(struct mpc_bus *m) |
78 | { | 78 | { |
79 | char str[7]; | 79 | char str[7]; |
80 | memcpy(str, m->mpc_bustype, 6); | 80 | memcpy(str, m->mpc_bustype, 6); |
@@ -338,8 +338,7 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) | |||
338 | } | 338 | } |
339 | case MP_BUS: | 339 | case MP_BUS: |
340 | { | 340 | { |
341 | struct mpc_config_bus *m = | 341 | struct mpc_bus *m = (struct mpc_bus *)mpt; |
342 | (struct mpc_config_bus *)mpt; | ||
343 | #ifdef CONFIG_X86_IO_APIC | 342 | #ifdef CONFIG_X86_IO_APIC |
344 | MP_bus_info(m); | 343 | MP_bus_info(m); |
345 | #endif | 344 | #endif |
@@ -488,7 +487,7 @@ static void __init construct_default_ioirq_mptable(int mpc_default_type) | |||
488 | static void __init construct_ioapic_table(int mpc_default_type) | 487 | static void __init construct_ioapic_table(int mpc_default_type) |
489 | { | 488 | { |
490 | struct mpc_config_ioapic ioapic; | 489 | struct mpc_config_ioapic ioapic; |
491 | struct mpc_config_bus bus; | 490 | struct mpc_bus bus; |
492 | 491 | ||
493 | bus.mpc_type = MP_BUS; | 492 | bus.mpc_type = MP_BUS; |
494 | bus.mpc_busid = 0; | 493 | bus.mpc_busid = 0; |
@@ -656,7 +655,7 @@ static void __init __get_smp_config(unsigned int early) | |||
656 | * ISA defaults and hope it will work. | 655 | * ISA defaults and hope it will work. |
657 | */ | 656 | */ |
658 | if (!mp_irq_entries) { | 657 | if (!mp_irq_entries) { |
659 | struct mpc_config_bus bus; | 658 | struct mpc_bus bus; |
660 | 659 | ||
661 | printk(KERN_ERR "BIOS bug, no explicit IRQ entries, " | 660 | printk(KERN_ERR "BIOS bug, no explicit IRQ entries, " |
662 | "using default mptable. " | 661 | "using default mptable. " |
@@ -867,8 +866,7 @@ static int __init replace_intsrc_all(struct mpc_table *mpc, | |||
867 | } | 866 | } |
868 | case MP_BUS: | 867 | case MP_BUS: |
869 | { | 868 | { |
870 | struct mpc_config_bus *m = | 869 | struct mpc_bus *m = (struct mpc_bus *)mpt; |
871 | (struct mpc_config_bus *)mpt; | ||
872 | mpt += sizeof(*m); | 870 | mpt += sizeof(*m); |
873 | count += sizeof(*m); | 871 | count += sizeof(*m); |
874 | break; | 872 | break; |
diff --git a/arch/x86/kernel/numaq_32.c b/arch/x86/kernel/numaq_32.c index 454c55b56748..813542692777 100644 --- a/arch/x86/kernel/numaq_32.c +++ b/arch/x86/kernel/numaq_32.c | |||
@@ -135,7 +135,7 @@ int mp_bus_id_to_node[MAX_MP_BUSSES]; | |||
135 | int mp_bus_id_to_local[MAX_MP_BUSSES]; | 135 | int mp_bus_id_to_local[MAX_MP_BUSSES]; |
136 | 136 | ||
137 | /* x86_quirks member */ | 137 | /* x86_quirks member */ |
138 | static void mpc_oem_bus_info(struct mpc_config_bus *m, char *name) | 138 | static void mpc_oem_bus_info(struct mpc_bus *m, char *name) |
139 | { | 139 | { |
140 | int quad = translation_table[mpc_record]->trans_quad; | 140 | int quad = translation_table[mpc_record]->trans_quad; |
141 | int local = translation_table[mpc_record]->trans_local; | 141 | int local = translation_table[mpc_record]->trans_local; |
@@ -149,7 +149,7 @@ static void mpc_oem_bus_info(struct mpc_config_bus *m, char *name) | |||
149 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; | 149 | int quad_local_to_mp_bus_id [NR_CPUS/4][4]; |
150 | 150 | ||
151 | /* x86_quirks member */ | 151 | /* x86_quirks member */ |
152 | static void mpc_oem_pci_bus(struct mpc_config_bus *m) | 152 | static void mpc_oem_pci_bus(struct mpc_bus *m) |
153 | { | 153 | { |
154 | int quad = translation_table[mpc_record]->trans_quad; | 154 | int quad = translation_table[mpc_record]->trans_quad; |
155 | int local = translation_table[mpc_record]->trans_local; | 155 | int local = translation_table[mpc_record]->trans_local; |