aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse.c
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinder@infradead.org>2009-01-04 11:29:26 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-05 08:08:33 -0500
commitd4c715fad5604f25ea1e5c90f280cb818851c10b (patch)
treef008e037bc991ceb5aa0c7fb05be352e626fce21 /arch/x86/kernel/mpparse.c
parentc4563826b72b0d12500260093179a660e79bf412 (diff)
x86: rename all fields of mpc_bus mpc_X to X
Impact: cleanup, solve 80 columns wrap problems It would be cleaner to rename all the mpc->mpc_X fields to mpc->X - that alone would give 4 characters per usage site. (we already know that it's an 'mpc' entity - no need to duplicate that in the field too) 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.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index a8b9ba9709fa..d780ddddbc37 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -77,39 +77,39 @@ static void __init MP_processor_info(struct mpc_cpu *m)
77static void __init MP_bus_info(struct mpc_bus *m) 77static 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->bustype, 6);
81 str[6] = 0; 81 str[6] = 0;
82 82
83 if (x86_quirks->mpc_oem_bus_info) 83 if (x86_quirks->mpc_oem_bus_info)
84 x86_quirks->mpc_oem_bus_info(m, str); 84 x86_quirks->mpc_oem_bus_info(m, str);
85 else 85 else
86 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->mpc_busid, str); 86 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str);
87 87
88#if MAX_MP_BUSSES < 256 88#if MAX_MP_BUSSES < 256
89 if (m->mpc_busid >= MAX_MP_BUSSES) { 89 if (m->busid >= MAX_MP_BUSSES) {
90 printk(KERN_WARNING "MP table busid value (%d) for bustype %s " 90 printk(KERN_WARNING "MP table busid value (%d) for bustype %s "
91 " is too large, max. supported is %d\n", 91 " is too large, max. supported is %d\n",
92 m->mpc_busid, str, MAX_MP_BUSSES - 1); 92 m->busid, str, MAX_MP_BUSSES - 1);
93 return; 93 return;
94 } 94 }
95#endif 95#endif
96 96
97 if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) { 97 if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) {
98 set_bit(m->mpc_busid, mp_bus_not_pci); 98 set_bit(m->busid, mp_bus_not_pci);
99#if defined(CONFIG_EISA) || defined(CONFIG_MCA) 99#if defined(CONFIG_EISA) || defined(CONFIG_MCA)
100 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_ISA; 100 mp_bus_id_to_type[m->busid] = MP_BUS_ISA;
101#endif 101#endif
102 } else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) { 102 } else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) {
103 if (x86_quirks->mpc_oem_pci_bus) 103 if (x86_quirks->mpc_oem_pci_bus)
104 x86_quirks->mpc_oem_pci_bus(m); 104 x86_quirks->mpc_oem_pci_bus(m);
105 105
106 clear_bit(m->mpc_busid, mp_bus_not_pci); 106 clear_bit(m->busid, mp_bus_not_pci);
107#if defined(CONFIG_EISA) || defined(CONFIG_MCA) 107#if defined(CONFIG_EISA) || defined(CONFIG_MCA)
108 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_PCI; 108 mp_bus_id_to_type[m->busid] = MP_BUS_PCI;
109 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) { 109 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) {
110 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_EISA; 110 mp_bus_id_to_type[m->busid] = MP_BUS_EISA;
111 } else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA) - 1) == 0) { 111 } else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA) - 1) == 0) {
112 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_MCA; 112 mp_bus_id_to_type[m->busid] = MP_BUS_MCA;
113#endif 113#endif
114 } else 114 } else
115 printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str); 115 printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str);
@@ -484,8 +484,8 @@ static void __init construct_ioapic_table(int mpc_default_type)
484 struct mpc_ioapic ioapic; 484 struct mpc_ioapic ioapic;
485 struct mpc_bus bus; 485 struct mpc_bus bus;
486 486
487 bus.mpc_type = MP_BUS; 487 bus.type = MP_BUS;
488 bus.mpc_busid = 0; 488 bus.busid = 0;
489 switch (mpc_default_type) { 489 switch (mpc_default_type) {
490 default: 490 default:
491 printk(KERN_ERR "???\nUnknown standard configuration %d\n", 491 printk(KERN_ERR "???\nUnknown standard configuration %d\n",
@@ -493,21 +493,21 @@ static void __init construct_ioapic_table(int mpc_default_type)
493 /* fall through */ 493 /* fall through */
494 case 1: 494 case 1:
495 case 5: 495 case 5:
496 memcpy(bus.mpc_bustype, "ISA ", 6); 496 memcpy(bus.bustype, "ISA ", 6);
497 break; 497 break;
498 case 2: 498 case 2:
499 case 6: 499 case 6:
500 case 3: 500 case 3:
501 memcpy(bus.mpc_bustype, "EISA ", 6); 501 memcpy(bus.bustype, "EISA ", 6);
502 break; 502 break;
503 case 4: 503 case 4:
504 case 7: 504 case 7:
505 memcpy(bus.mpc_bustype, "MCA ", 6); 505 memcpy(bus.bustype, "MCA ", 6);
506 } 506 }
507 MP_bus_info(&bus); 507 MP_bus_info(&bus);
508 if (mpc_default_type > 4) { 508 if (mpc_default_type > 4) {
509 bus.mpc_busid = 1; 509 bus.busid = 1;
510 memcpy(bus.mpc_bustype, "PCI ", 6); 510 memcpy(bus.bustype, "PCI ", 6);
511 MP_bus_info(&bus); 511 MP_bus_info(&bus);
512 } 512 }
513 513
@@ -656,9 +656,9 @@ static void __init __get_smp_config(unsigned int early)
656 "using default mptable. " 656 "using default mptable. "
657 "(tell your hw vendor)\n"); 657 "(tell your hw vendor)\n");
658 658
659 bus.mpc_type = MP_BUS; 659 bus.type = MP_BUS;
660 bus.mpc_busid = 0; 660 bus.busid = 0;
661 memcpy(bus.mpc_bustype, "ISA ", 6); 661 memcpy(bus.bustype, "ISA ", 6);
662 MP_bus_info(&bus); 662 MP_bus_info(&bus);
663 663
664 construct_default_ioirq_mptable(0); 664 construct_default_ioirq_mptable(0);