Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129726
b: refs/heads/master
c: a6d0b91
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Jan 13, 2009
1 parent e80a497 commit 4fe4a95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b74f62c1e736ea01c660355526dd54132d241ca9
refs/heads/master: a6d0b91ae5dd01263530c96f9b29001cb1ed58b0
8 changes: 8 additions & 0 deletions trunk/drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,10 +1622,18 @@ static int gfar_clean_tx_ring(struct net_device *dev)
static void gfar_schedule_cleanup(struct net_device *dev)
{
struct gfar_private *priv = netdev_priv(dev);
unsigned long flags;

spin_lock_irqsave(&priv->txlock, flags);
spin_lock(&priv->rxlock);

if (netif_rx_schedule_prep(&priv->napi)) {
gfar_write(&priv->regs->imask, IMASK_RTX_DISABLED);
__netif_rx_schedule(&priv->napi);
}

spin_unlock(&priv->rxlock);
spin_unlock_irqrestore(&priv->txlock, flags);
}

/* Interrupt Handler for Transmit complete */
Expand Down

0 comments on commit 4fe4a95

Please sign in to comment.