Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9520
b: refs/heads/master
c: 63bea35
h: refs/heads/master
v: v3
  • Loading branch information
Jody McIntyre authored and Linus Torvalds committed Sep 30, 2005
1 parent 42b1d98 commit e288749
Show file tree
Hide file tree
Showing 2 changed files with 3 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: db2fd664f8ac3664dfd94d624c0a871bee937bd5
refs/heads/master: 63bea35036540c0e8a309aef9bc37a9acfb520ae
3 changes: 2 additions & 1 deletion trunk/drivers/ieee1394/hosts.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/timer.h>
#include <linux/jiffies.h>

#include "csr1212.h"
#include "ieee1394.h"
Expand Down Expand Up @@ -217,7 +218,7 @@ int hpsb_update_config_rom_image(struct hpsb_host *host)

/* IEEE 1394a-2000 prohibits using the same generation number
* twice in a 60 second period. */
if (jiffies - host->csr.gen_timestamp[next_gen] < 60 * HZ)
if (time_before(jiffies, host->csr.gen_timestamp[next_gen] + 60 * HZ))
/* Wait 60 seconds from the last time this generation number was
* used. */
reset_delay = (60 * HZ) + host->csr.gen_timestamp[next_gen] - jiffies;
Expand Down

0 comments on commit e288749

Please sign in to comment.