Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1359
b: refs/heads/master
c: df25e16
h: refs/heads/master
i:
  1357: 246392c
  1355: 67a0fa6
  1351: 9b51497
  1343: 3949530
v: v3
  • Loading branch information
Malli Chilakala authored and Jeff Garzik committed May 13, 2005
1 parent 4c152de commit dab2ce7
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e4eff7291c977308989b24fdfc7215a501302e6a
refs/heads/master: df25e164878836196ee93d1a5757867da6eac30e
7 changes: 6 additions & 1 deletion trunk/drivers/net/e1000/e1000_osdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
#include <linux/sched.h>

#ifndef msec_delay
#define msec_delay(x) msleep(x)
#define msec_delay(x) do { if(in_interrupt()) { \
/* Don't mdelay in interrupt context! */ \
BUG(); \
} else { \
msleep(x); \
} } while(0)

/* Some workarounds require millisecond delays and are run during interrupt
* context. Most notably, when establishing link, the phy may need tweaking
Expand Down

0 comments on commit dab2ce7

Please sign in to comment.