]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[TG3]: Eliminate one register write in tg3_restart_ints()
authorMichael Chan <mchan@broadcom.com>
Wed, 10 Aug 2005 03:17:28 +0000 (20:17 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 22:50:45 +0000 (15:50 -0700)
The register write to register 0x68 to restart interrupts is unnecessary
as the interrupt wasn't masked in that register by the irq handler. This
will save one register write in the fast path.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c

index 3a7cfb81bf8930804bbbe1c5ee204ba9cc94694f..8bc28b14c70fc35fd928868a66a393a21d7a7772 100644 (file)
@@ -533,8 +533,6 @@ static inline unsigned int tg3_has_work(struct tg3 *tp)
  */
 static void tg3_restart_ints(struct tg3 *tp)
 {
-       tw32(TG3PCI_MISC_HOST_CTRL,
-               (tp->misc_host_ctrl & ~MISC_HOST_CTRL_MASK_PCI_INT));
        tw32_mailbox(MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW,
                     tp->last_tag << 24);
        mmiowb();