diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2009-01-04 11:25:53 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-05 08:08:31 -0500 |
commit | b5ced7cdb018b8728ddcfb175c26f30cc185cf66 (patch) | |
tree | 0187368c87c770f741c780aa9839b3645339817e /arch | |
parent | 5df82c7d18f2dd51aeb763f2a3c1d7714a28218c (diff) |
x86: rename all fields of mpc_lintsrc 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')
-rw-r--r-- | arch/x86/include/asm/mpspec_def.h | 14 | ||||
-rw-r--r-- | arch/x86/kernel/mpparse.c | 19 |
2 files changed, 16 insertions, 17 deletions
diff --git a/arch/x86/include/asm/mpspec_def.h b/arch/x86/include/asm/mpspec_def.h index f805682d80dc..c8bbb3212bd7 100644 --- a/arch/x86/include/asm/mpspec_def.h +++ b/arch/x86/include/asm/mpspec_def.h | |||
@@ -140,13 +140,13 @@ enum mp_irq_source_types { | |||
140 | #define MP_APIC_ALL 0xFF | 140 | #define MP_APIC_ALL 0xFF |
141 | 141 | ||
142 | struct mpc_lintsrc { | 142 | struct mpc_lintsrc { |
143 | unsigned char mpc_type; | 143 | unsigned char type; |
144 | unsigned char mpc_irqtype; | 144 | unsigned char irqtype; |
145 | unsigned short mpc_irqflag; | 145 | unsigned short irqflag; |
146 | unsigned char mpc_srcbusid; | 146 | unsigned char srcbusid; |
147 | unsigned char mpc_srcbusirq; | 147 | unsigned char srcbusirq; |
148 | unsigned char mpc_destapic; | 148 | unsigned char destapic; |
149 | unsigned char mpc_destapiclint; | 149 | unsigned char destapiclint; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | #define MPC_OEM_SIGNATURE "_OEM" | 152 | #define MPC_OEM_SIGNATURE "_OEM" |
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index f36d9daaf12c..a5c728be41cd 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -237,9 +237,8 @@ static void __init MP_lintsrc_info(struct mpc_lintsrc *m) | |||
237 | { | 237 | { |
238 | apic_printk(APIC_VERBOSE, "Lint: type %d, pol %d, trig %d, bus %02x," | 238 | apic_printk(APIC_VERBOSE, "Lint: type %d, pol %d, trig %d, bus %02x," |
239 | " IRQ %02x, APIC ID %x, APIC LINT %02x\n", | 239 | " IRQ %02x, APIC ID %x, APIC LINT %02x\n", |
240 | m->mpc_irqtype, m->mpc_irqflag & 3, | 240 | m->irqtype, m->irqflag & 3, (m->irqflag >> 2) & 3, m->srcbusid, |
241 | (m->mpc_irqflag >> 2) & 3, m->mpc_srcbusid, | 241 | m->srcbusirq, m->destapic, m->destapiclint); |
242 | m->mpc_srcbusirq, m->mpc_destapic, m->mpc_destapiclint); | ||
243 | } | 242 | } |
244 | 243 | ||
245 | /* | 244 | /* |
@@ -560,14 +559,14 @@ static inline void __init construct_default_ISA_mptable(int mpc_default_type) | |||
560 | 559 | ||
561 | construct_ioapic_table(mpc_default_type); | 560 | construct_ioapic_table(mpc_default_type); |
562 | 561 | ||
563 | lintsrc.mpc_type = MP_LINTSRC; | 562 | lintsrc.type = MP_LINTSRC; |
564 | lintsrc.mpc_irqflag = 0; /* conforming */ | 563 | lintsrc.irqflag = 0; /* conforming */ |
565 | lintsrc.mpc_srcbusid = 0; | 564 | lintsrc.srcbusid = 0; |
566 | lintsrc.mpc_srcbusirq = 0; | 565 | lintsrc.srcbusirq = 0; |
567 | lintsrc.mpc_destapic = MP_APIC_ALL; | 566 | lintsrc.destapic = MP_APIC_ALL; |
568 | for (i = 0; i < 2; i++) { | 567 | for (i = 0; i < 2; i++) { |
569 | lintsrc.mpc_irqtype = linttypes[i]; | 568 | lintsrc.irqtype = linttypes[i]; |
570 | lintsrc.mpc_destapiclint = i; | 569 | lintsrc.destapiclint = i; |
571 | MP_lintsrc_info(&lintsrc); | 570 | MP_lintsrc_info(&lintsrc); |
572 | } | 571 | } |
573 | } | 572 | } |