Skip to content

Commit

Permalink
ieee1394: usecs_to_jiffies takes unsigned int argument
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Richter <[email protected]>
  • Loading branch information
Stefan Richter committed Dec 7, 2006
1 parent da256c5 commit b63d4fe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/ieee1394/csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,10 @@ static void host_reset(struct hpsb_host *host)
*/
static inline void calculate_expire(struct csr_control *csr)
{
unsigned long usecs =
(csr->split_timeout_hi & 0x07) * USEC_PER_SEC +
(csr->split_timeout_lo >> 19) * 125L;

csr->expire = usecs_to_jiffies(usecs > 100000L ? usecs : 100000L);
unsigned int usecs = (csr->split_timeout_hi & 7) * 1000000 +
(csr->split_timeout_lo >> 19) * 125;

csr->expire = usecs_to_jiffies(usecs > 100000 ? usecs : 100000);
HPSB_VERBOSE("CSR: setting expire to %lu, HZ=%u", csr->expire, HZ);
}

Expand Down

0 comments on commit b63d4fe

Please sign in to comment.