aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 17:30:04 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 17:30:04 -0500
commit3ddc76dfc786cc6f87852693227fb0b1f124f807 (patch)
tree8192b4721e05cf6823087f9696db8c0c8f144b02 /drivers/scsi
parentb272f732f888d4cf43c943a40c9aaa836f9b7431 (diff)
parent1f3a8e49d8f28f498b8694464623ac20aebfe62a (diff)
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer type cleanups from Thomas Gleixner: "This series does a tree wide cleanup of types related to timers/timekeeping. - Get rid of cycles_t and use a plain u64. The type is not really helpful and caused more confusion than clarity - Get rid of the ktime union. The union has become useless as we use the scalar nanoseconds storage unconditionally now. The 32bit timespec alike storage got removed due to the Y2038 limitations some time ago. That leaves the odd union access around for no reason. Clean it up. Both changes have been done with coccinelle and a small amount of manual mopping up" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: ktime: Get rid of ktime_equal() ktime: Cleanup ktime_set() usage ktime: Get rid of the union clocksource: Use a plain u64 instead of cycle_t
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c2
-rw-r--r--drivers/scsi/scsi_debug.c2
-rw-r--r--drivers/scsi/ufs/ufshcd.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
index 2583e8b50b21..3d3768aaab4f 100644
--- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
+++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
@@ -1694,7 +1694,7 @@ static void srp_snd_msg_failed(struct scsi_info *vscsi, long rc)
1694 if (!vscsi->rsp_q_timer.started) { 1694 if (!vscsi->rsp_q_timer.started) {
1695 if (vscsi->rsp_q_timer.timer_pops < 1695 if (vscsi->rsp_q_timer.timer_pops <
1696 MAX_TIMER_POPS) { 1696 MAX_TIMER_POPS) {
1697 kt = ktime_set(0, WAIT_NANO_SECONDS); 1697 kt = WAIT_NANO_SECONDS;
1698 } else { 1698 } else {
1699 /* 1699 /*
1700 * slide the timeslice if the maximum 1700 * slide the timeslice if the maximum
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index cf04a364fd8b..03051e12a072 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -4085,7 +4085,7 @@ static int schedule_resp(struct scsi_cmnd *cmnd, struct sdebug_dev_info *devip,
4085 jiffies_to_timespec(delta_jiff, &ts); 4085 jiffies_to_timespec(delta_jiff, &ts);
4086 kt = ktime_set(ts.tv_sec, ts.tv_nsec); 4086 kt = ktime_set(ts.tv_sec, ts.tv_nsec);
4087 } else 4087 } else
4088 kt = ktime_set(0, sdebug_ndelay); 4088 kt = sdebug_ndelay;
4089 if (NULL == sd_dp) { 4089 if (NULL == sd_dp) {
4090 sd_dp = kzalloc(sizeof(*sd_dp), GFP_ATOMIC); 4090 sd_dp = kzalloc(sizeof(*sd_dp), GFP_ATOMIC);
4091 if (NULL == sd_dp) 4091 if (NULL == sd_dp)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index a2c2817fc566..20e5e5fb048c 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -930,7 +930,7 @@ static void ufshcd_clk_scaling_update_busy(struct ufs_hba *hba)
930 if (!hba->outstanding_reqs && scaling->is_busy_started) { 930 if (!hba->outstanding_reqs && scaling->is_busy_started) {
931 scaling->tot_busy_t += ktime_to_us(ktime_sub(ktime_get(), 931 scaling->tot_busy_t += ktime_to_us(ktime_sub(ktime_get(),
932 scaling->busy_start_t)); 932 scaling->busy_start_t));
933 scaling->busy_start_t = ktime_set(0, 0); 933 scaling->busy_start_t = 0;
934 scaling->is_busy_started = false; 934 scaling->is_busy_started = false;
935 } 935 }
936} 936}
@@ -6661,7 +6661,7 @@ start_window:
6661 scaling->busy_start_t = ktime_get(); 6661 scaling->busy_start_t = ktime_get();
6662 scaling->is_busy_started = true; 6662 scaling->is_busy_started = true;
6663 } else { 6663 } else {
6664 scaling->busy_start_t = ktime_set(0, 0); 6664 scaling->busy_start_t = 0;
6665 scaling->is_busy_started = false; 6665 scaling->is_busy_started = false;
6666 } 6666 }
6667 spin_unlock_irqrestore(hba->host->host_lock, flags); 6667 spin_unlock_irqrestore(hba->host->host_lock, flags);