Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180587
b: refs/heads/master
c: 39c2ff4
h: refs/heads/master
i:
  180585: ba04b34
  180583: f3ede2f
v: v3
  • Loading branch information
Simon Kagstrom authored and David S. Miller committed Feb 10, 2010
1 parent b79d63f commit a97b442
Show file tree
Hide file tree
Showing 2 changed files with 4 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: d6cade0f7f40834ff3b48f2469d00b1be0ea0db6
refs/heads/master: 39c2ff43ea3830ccc693f965abdace96e514b1c5
3 changes: 3 additions & 0 deletions trunk/drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -3341,6 +3341,7 @@ static int velocity_set_coalesce(struct net_device *dev,
{
struct velocity_info *vptr = netdev_priv(dev);
int max_us = 0x3f * 64;
unsigned long flags;

/* 6 bits of */
if (ecmd->tx_coalesce_usecs > max_us)
Expand All @@ -3362,13 +3363,15 @@ static int velocity_set_coalesce(struct net_device *dev,
ecmd->tx_coalesce_usecs);

/* Setup the interrupt suppression and queue timers */
spin_lock_irqsave(&vptr->lock, flags);
mac_disable_int(vptr->mac_regs);
setup_adaptive_interrupts(vptr);
setup_queue_timers(vptr);

mac_write_int_mask(vptr->int_mask, vptr->mac_regs);
mac_clear_isr(vptr->mac_regs);
mac_enable_int(vptr->mac_regs);
spin_unlock_irqrestore(&vptr->lock, flags);

return 0;
}
Expand Down

0 comments on commit a97b442

Please sign in to comment.