Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172933
b: refs/heads/master
c: f21121c
h: refs/heads/master
i:
  172931: 7503bd5
v: v3
  • Loading branch information
Hideyuki Sasaki authored and Jens Axboe committed Nov 4, 2009
1 parent b0dcfd9 commit a0c0dc1
Show file tree
Hide file tree
Showing 2 changed files with 10 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: e00ef7997195e4f8e10593727a6286e2e2802159
refs/heads/master: f21121cde6e617b90cd03ce083652ca543004dc2
10 changes: 9 additions & 1 deletion trunk/drivers/block/ps3vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ static int ps3vram_notifier_wait(struct ps3_system_bus_device *dev,
{
struct ps3vram_priv *priv = ps3_system_bus_get_drvdata(dev);
u32 *notify = ps3vram_get_notifier(priv->reports, NOTIFIER);
unsigned long timeout = jiffies + msecs_to_jiffies(timeout_ms);
unsigned long timeout;

for (timeout = 20; timeout; timeout--) {
if (!notify[3])
return 0;
udelay(10);
}

timeout = jiffies + msecs_to_jiffies(timeout_ms);

do {
if (!notify[3])
Expand Down

0 comments on commit a0c0dc1

Please sign in to comment.