diff options
| author | Jens Axboe <axboe@suse.de> | 2003-05-29 20:55:12 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2003-05-29 20:55:12 -0700 |
| commit | ff208476f0458685e3dc7b4176bdd7e9a1bef1a4 (patch) | |
| tree | d60d490f1bf46524f50c20171903a117df315bc2 /include/linux/threads.h | |
| parent | 4303cc87fde3ec2a35d9c1eef6b429eb0b38c8aa (diff) | |
[PATCH] scsi_ioctl HZ fixes
According to http://www.torque.net/sg/p/sg_v3_ho.html, SG HOWTO,
SG_[GET|SET]_TIMEOUTs are measured in "jiffies," while timeout field
of SG_IO structure - in milliseconds. Inconsistent? Yes. Yet it's no
excuse to disregard the specification. "Jiffies" are USER_HZ, 10ms on
IA-32 platforms and has to be scaled to kernel "jiffies," as suggested
below. As for "(jiffies - start_time) * (1000 / HZ)" vs.
"((jiffies - start_time) * 1000) / HZ." Just think that HZ is 1024 on
some platforms...
Diffstat (limited to 'include/linux/threads.h')
0 files changed, 0 insertions, 0 deletions
