scsi_debug: replace jiffy timers with hr timers
authorDouglas Gilbert <dgilbert@interlog.com>
Mon, 25 Apr 2016 16:16:30 +0000 (12:16 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Apr 2016 23:25:59 +0000 (19:25 -0400)
commitb333a819813c756804034c93b05e43ccdd4025a5
tree905ccf2b495a9eb6d0e79ade05252746cbcefde6
parent185dd2329785981d458690c78fd56b320fef4ea7
scsi_debug: replace jiffy timers with hr timers

The driver supports two command delay interfaces, the original one whose
unit is a jiffy, and a newer one whose unit is a nanosecond. Each had
different implementations.  Keep both interfaces but simplify the
implemenation to use a single delay mechanism based on high resolution
timers.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c