Skip to contentSkip to conversation

Review comments/questions on preempt-irqs-i386.patch

DISCUSSION Paul Gortmaker 1 participant 1 message Aug 20, 2008

lore
Share & tools
lore
#0 lore raw

I'm looking at what is in "preempt-irqs-i386.patch" in the broken out series for 2.6.26-rt1; and I've spotted something that I think might be a merge/carry-forward error (not sure). Specifically this chunk:

- if (auto_eoi) /* master does Auto EOI */
- outb_pic(MASTER_ICW4_DEFAULT | PIC_ICW4_AEOI, PIC_MASTER_IMR);
- else /* master expects normal EOI */
- outb_pic(MASTER_ICW4_DEFAULT, PIC_MASTER_IMR);
+ if (!auto_eoi) /* master expects normal EOI */
+ outb_p(MASTER_ICW4_DEFAULT, PIC_MASTER_IMR);
+ else /* master does Auto EOI */
+ outb_p(MASTER_ICW4_DEFAULT | PIC_ICW4_AEOI, PIC_MASTER_IMR);

I'm wondering (a) is the replacement of outb_pic with the more generic outb_p intentional, or a carry forward artefact, and (b) the outb aside, I think this change looks like it essentially does:

- if (x)
- x-action();
- else
- not-x-action();
+ if (!x)
+ not-x-action();
+ else
+ x-action();

Is that a fair assesment, or am I missing something?

Thanks,
Paul.