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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux