* Review comments/questions on preempt-irqs-i386.patch
@ 2008-08-20 0:04 Paul Gortmaker
0 siblings, 0 replies; only message in thread
From: Paul Gortmaker @ 2008-08-20 0:04 UTC (permalink / raw)
To: linux-rt-users
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-20 0:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 0:04 Review comments/questions on preempt-irqs-i386.patch Paul Gortmaker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).