aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse.c
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-01-12 07:17:22 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-14 05:58:35 -0500
commitc2c21745ecba23c74690a124bcd371f83bd71e45 (patch)
tree7332d81935e67ae3175e92137b8b04fabac693f2 /arch/x86/kernel/mpparse.c
parentb5ba7e6d1e7e2ac808afd21be1e56dc34caf20e6 (diff)
x86: replacing mp_config_intsrc with mpc_intsrc
Impact: cleanup, solve 80 columns wrap problems 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.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index a86a65537433..ad36377dc935 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -159,55 +159,55 @@ static void print_MP_intsrc_info(struct mpc_intsrc *m)
159 m->srcbusirq, m->dstapic, m->dstirq); 159 m->srcbusirq, m->dstapic, m->dstirq);
160} 160}
161 161
162static void __init print_mp_irq_info(struct mp_config_intsrc *mp_irq) 162static void __init print_mp_irq_info(struct mpc_intsrc *mp_irq)
163{ 163{
164 apic_printk(APIC_VERBOSE, "Int: type %d, pol %d, trig %d, bus %02x," 164 apic_printk(APIC_VERBOSE, "Int: type %d, pol %d, trig %d, bus %02x,"
165 " IRQ %02x, APIC ID %x, APIC INT %02x\n", 165 " IRQ %02x, APIC ID %x, APIC INT %02x\n",
166 mp_irq->mp_irqtype, mp_irq->mp_irqflag & 3, 166 mp_irq->irqtype, mp_irq->irqflag & 3,
167 (mp_irq->mp_irqflag >> 2) & 3, mp_irq->mp_srcbus, 167 (mp_irq->irqflag >> 2) & 3, mp_irq->srcbus,
168 mp_irq->mp_srcbusirq, mp_irq->mp_dstapic, mp_irq->mp_dstirq); 168 mp_irq->srcbusirq, mp_irq->dstapic, mp_irq->dstirq);
169} 169}
170 170
171static void __init assign_to_mp_irq(struct mpc_intsrc *m, 171static void __init assign_to_mp_irq(struct mpc_intsrc *m,
172 struct mp_config_intsrc *mp_irq) 172 struct mpc_intsrc *mp_irq)
173{ 173{
174 mp_irq->mp_dstapic = m->dstapic; 174 mp_irq->dstapic = m->dstapic;
175 mp_irq->mp_type = m->type; 175 mp_irq->type = m->type;
176 mp_irq->mp_irqtype = m->irqtype; 176 mp_irq->irqtype = m->irqtype;
177 mp_irq->mp_irqflag = m->irqflag; 177 mp_irq->irqflag = m->irqflag;
178 mp_irq->mp_srcbus = m->srcbus; 178 mp_irq->srcbus = m->srcbus;
179 mp_irq->mp_srcbusirq = m->srcbusirq; 179 mp_irq->srcbusirq = m->srcbusirq;
180 mp_irq->mp_dstirq = m->dstirq; 180 mp_irq->dstirq = m->dstirq;
181} 181}
182 182
183static void __init assign_to_mpc_intsrc(struct mp_config_intsrc *mp_irq, 183static void __init assign_to_mpc_intsrc(struct mpc_intsrc *mp_irq,
184 struct mpc_intsrc *m) 184 struct mpc_intsrc *m)
185{ 185{
186 m->dstapic = mp_irq->mp_dstapic; 186 m->dstapic = mp_irq->dstapic;
187 m->type = mp_irq->mp_type; 187 m->type = mp_irq->type;
188 m->irqtype = mp_irq->mp_irqtype; 188 m->irqtype = mp_irq->irqtype;
189 m->irqflag = mp_irq->mp_irqflag; 189 m->irqflag = mp_irq->irqflag;
190 m->srcbus = mp_irq->mp_srcbus; 190 m->srcbus = mp_irq->srcbus;
191 m->srcbusirq = mp_irq->mp_srcbusirq; 191 m->srcbusirq = mp_irq->srcbusirq;
192 m->dstirq = mp_irq->mp_dstirq; 192 m->dstirq = mp_irq->dstirq;
193} 193}
194 194
195static int __init mp_irq_mpc_intsrc_cmp(struct mp_config_intsrc *mp_irq, 195static int __init mp_irq_mpc_intsrc_cmp(struct mpc_intsrc *mp_irq,
196 struct mpc_intsrc *m) 196 struct mpc_intsrc *m)
197{ 197{
198 if (mp_irq->mp_dstapic != m->dstapic) 198 if (mp_irq->dstapic != m->dstapic)
199 return 1; 199 return 1;
200 if (mp_irq->mp_type != m->type) 200 if (mp_irq->type != m->type)
201 return 2; 201 return 2;
202 if (mp_irq->mp_irqtype != m->irqtype) 202 if (mp_irq->irqtype != m->irqtype)
203 return 3; 203 return 3;
204 if (mp_irq->mp_irqflag != m->irqflag) 204 if (mp_irq->irqflag != m->irqflag)
205 return 4; 205 return 4;
206 if (mp_irq->mp_srcbus != m->srcbus) 206 if (mp_irq->srcbus != m->srcbus)
207 return 5; 207 return 5;
208 if (mp_irq->mp_srcbusirq != m->srcbusirq) 208 if (mp_irq->srcbusirq != m->srcbusirq)
209 return 6; 209 return 6;
210 if (mp_irq->mp_dstirq != m->dstirq) 210 if (mp_irq->dstirq != m->dstirq)
211 return 7; 211 return 7;
212 212
213 return 0; 213 return 0;
@@ -808,15 +808,15 @@ static int __init get_MP_intsrc_index(struct mpc_intsrc *m)
808 /* not legacy */ 808 /* not legacy */
809 809
810 for (i = 0; i < mp_irq_entries; i++) { 810 for (i = 0; i < mp_irq_entries; i++) {
811 if (mp_irqs[i].mp_irqtype != mp_INT) 811 if (mp_irqs[i].irqtype != mp_INT)
812 continue; 812 continue;
813 813
814 if (mp_irqs[i].mp_irqflag != 0x0f) 814 if (mp_irqs[i].irqflag != 0x0f)
815 continue; 815 continue;
816 816
817 if (mp_irqs[i].mp_srcbus != m->srcbus) 817 if (mp_irqs[i].srcbus != m->srcbus)
818 continue; 818 continue;
819 if (mp_irqs[i].mp_srcbusirq != m->srcbusirq) 819 if (mp_irqs[i].srcbusirq != m->srcbusirq)
820 continue; 820 continue;
821 if (irq_used[i]) { 821 if (irq_used[i]) {
822 /* already claimed */ 822 /* already claimed */
@@ -921,10 +921,10 @@ static int __init replace_intsrc_all(struct mpc_table *mpc,
921 if (irq_used[i]) 921 if (irq_used[i])
922 continue; 922 continue;
923 923
924 if (mp_irqs[i].mp_irqtype != mp_INT) 924 if (mp_irqs[i].irqtype != mp_INT)
925 continue; 925 continue;
926 926
927 if (mp_irqs[i].mp_irqflag != 0x0f) 927 if (mp_irqs[i].irqflag != 0x0f)
928 continue; 928 continue;
929 929
930 if (nr_m_spare > 0) { 930 if (nr_m_spare > 0) {