diff options
Diffstat (limited to 'block/scsi_ioctl.c')
-rw-r--r-- | block/scsi_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index d0bb92cbefb9..ee9c67d7e1be 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c | |||
@@ -60,7 +60,7 @@ static int scsi_get_bus(struct request_queue *q, int __user *p) | |||
60 | 60 | ||
61 | static int sg_get_timeout(struct request_queue *q) | 61 | static int sg_get_timeout(struct request_queue *q) |
62 | { | 62 | { |
63 | return q->sg_timeout / (HZ / USER_HZ); | 63 | return jiffies_to_clock_t(q->sg_timeout); |
64 | } | 64 | } |
65 | 65 | ||
66 | static int sg_set_timeout(struct request_queue *q, int __user *p) | 66 | static int sg_set_timeout(struct request_queue *q, int __user *p) |
@@ -68,7 +68,7 @@ static int sg_set_timeout(struct request_queue *q, int __user *p) | |||
68 | int timeout, err = get_user(timeout, p); | 68 | int timeout, err = get_user(timeout, p); |
69 | 69 | ||
70 | if (!err) | 70 | if (!err) |
71 | q->sg_timeout = timeout * (HZ / USER_HZ); | 71 | q->sg_timeout = clock_t_to_jiffies(timeout); |
72 | 72 | ||
73 | return err; | 73 | return err; |
74 | } | 74 | } |