Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321615
b: refs/heads/master
c: bcf9dcc
h: refs/heads/master
i:
  321613: e378559
  321611: 9c6b8fd
  321607: 3343c51
  321599: 96bd6f1
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Aug 6, 2012
1 parent b234c63 commit ac636c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: faea35dd8a9d3605c411c8ecd7f97f0f9ecbaf58
refs/heads/master: bcf9dcc1e6269fac674e41f25d007ff75f76e840
19 changes: 10 additions & 9 deletions trunk/drivers/gpu/drm/i915/intel_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@
})

#define wait_for_atomic_us(COND, US) ({ \
int i, ret__ = -ETIMEDOUT; \
for (i = 0; i < (US); i++) { \
if ((COND)) { \
ret__ = 0; \
break; \
} \
udelay(1); \
} \
ret__; \
unsigned long timeout__ = jiffies + usecs_to_jiffies(US); \
int ret__ = 0; \
while (!(COND)) { \
if (time_after(jiffies, timeout__)) { \
ret__ = -ETIMEDOUT; \
break; \
} \
cpu_relax(); \
} \
ret__; \
})

#define wait_for(COND, MS) _wait_for(COND, MS, 1)
Expand Down

0 comments on commit ac636c5

Please sign in to comment.