ncr5380: Harmonize jiffies conversion with msecs_to_jiffies
Instances of var * HZ / 1000 are replaced by msecs_to_jiffies(var). In addition some timing constants that assumed HZ 100 were adjusted to HZ independent settings based on review comments from Michael Schmitz <schmitzmic@gmail.com> and review of the original drivers in 1.0.31 and 2.2.16. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Acked-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:

committed by
James Bottomley

parent
b026e8ed55
commit
4e5a800c82
@@ -1486,7 +1486,7 @@ static int NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd)
|
||||
* selection.
|
||||
*/
|
||||
|
||||
timeout = jiffies + (250 * HZ / 1000);
|
||||
timeout = jiffies + msecs_to_jiffies(250);
|
||||
|
||||
/*
|
||||
* XXX very interesting - we're seeing a bounce where the BSY we
|
||||
|
Reference in New Issue
Block a user