mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
ieee1394: usecs_to_jiffies takes unsigned int argument
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
da256c5537
commit
b63d4fe95f
@ -158,12 +158,10 @@ static void host_reset(struct hpsb_host *host)
|
|||||||
*/
|
*/
|
||||||
static inline void calculate_expire(struct csr_control *csr)
|
static inline void calculate_expire(struct csr_control *csr)
|
||||||
{
|
{
|
||||||
unsigned long usecs =
|
unsigned int usecs = (csr->split_timeout_hi & 7) * 1000000 +
|
||||||
(csr->split_timeout_hi & 0x07) * USEC_PER_SEC +
|
(csr->split_timeout_lo >> 19) * 125;
|
||||||
(csr->split_timeout_lo >> 19) * 125L;
|
|
||||||
|
|
||||||
csr->expire = usecs_to_jiffies(usecs > 100000L ? usecs : 100000L);
|
|
||||||
|
|
||||||
|
csr->expire = usecs_to_jiffies(usecs > 100000 ? usecs : 100000);
|
||||||
HPSB_VERBOSE("CSR: setting expire to %lu, HZ=%u", csr->expire, HZ);
|
HPSB_VERBOSE("CSR: setting expire to %lu, HZ=%u", csr->expire, HZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user