Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134308
b: refs/heads/master
c: 79d30a5
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and David S. Miller committed Feb 6, 2009
1 parent 9acec36 commit 56922eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddb213f0768dc8b10cab37a21b85b567f1966d4a
refs/heads/master: 79d30a581fc405fc63322622cb1517d95ed8f5ce
8 changes: 5 additions & 3 deletions trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -4057,8 +4057,6 @@ static void nv_do_nic_poll(unsigned long data)
mask |= NVREG_IRQ_OTHER;
}
}
np->nic_poll_irq = 0;

/* disable_irq() contains synchronize_irq, thus no irq handler can run now */

if (np->recover_error) {
Expand Down Expand Up @@ -4096,11 +4094,11 @@ static void nv_do_nic_poll(unsigned long data)
}
}


writel(mask, base + NvRegIrqMask);
pci_push(base);

if (!using_multi_irqs(dev)) {
np->nic_poll_irq = 0;
if (nv_optimized(np))
nv_nic_irq_optimized(0, dev);
else
Expand All @@ -4111,18 +4109,22 @@ static void nv_do_nic_poll(unsigned long data)
enable_irq_lockdep(np->pci_dev->irq);
} else {
if (np->nic_poll_irq & NVREG_IRQ_RX_ALL) {
np->nic_poll_irq &= ~NVREG_IRQ_RX_ALL;
nv_nic_irq_rx(0, dev);
enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_RX].vector);
}
if (np->nic_poll_irq & NVREG_IRQ_TX_ALL) {
np->nic_poll_irq &= ~NVREG_IRQ_TX_ALL;
nv_nic_irq_tx(0, dev);
enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_TX].vector);
}
if (np->nic_poll_irq & NVREG_IRQ_OTHER) {
np->nic_poll_irq &= ~NVREG_IRQ_OTHER;
nv_nic_irq_other(0, dev);
enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_OTHER].vector);
}
}

}

#ifdef CONFIG_NET_POLL_CONTROLLER
Expand Down

0 comments on commit 56922eb

Please sign in to comment.