Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15676
b: refs/heads/master
c: 760559e
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik committed Nov 10, 2005
1 parent 3682a20 commit bc680ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 2f67bdb23d74a6c6fd4f98f64239c5c34d1833cc
refs/heads/master: 760559e1330a58cc5b320154a20e64b8444143c0
8 changes: 7 additions & 1 deletion trunk/drivers/net/8139too.c
Original file line number Diff line number Diff line change
Expand Up @@ -1598,13 +1598,19 @@ static void rtl8139_thread (void *_data)
{
struct net_device *dev = _data;
struct rtl8139_private *tp = netdev_priv(dev);
unsigned long thr_delay;

if (rtnl_shlock_nowait() == 0) {
rtl8139_thread_iter (dev, tp, tp->mmio_addr);
rtnl_unlock ();

thr_delay = next_tick;
} else {
/* unlikely race. mitigate with fast poll. */
thr_delay = HZ / 2;
}

schedule_delayed_work(&tp->thread, next_tick);
schedule_delayed_work(&tp->thread, thr_delay);
}

static void rtl8139_start_thread(struct rtl8139_private *tp)
Expand Down

0 comments on commit bc680ed

Please sign in to comment.