diff options
author | James Bottomley <JBottomley@Odin.com> | 2015-11-12 07:06:18 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-11-12 07:06:18 -0500 |
commit | febdfbd2137a5727f70dfbf920105c07e6c2a21e (patch) | |
tree | 9483a5493ad3e08626e1f53ded594f88a6f4e710 /drivers/scsi/pmcraid.c | |
parent | 0da39687a15403251bdfd1c6fb18025c0607326b (diff) | |
parent | 2c5d16d6a9e7218e57b716e4fd9d77c776d21471 (diff) |
Merge tag '4.4-scsi-mkp' into misc
SCSI queue for 4.4.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r-- | drivers/scsi/pmcraid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 48d62249c226..b2a88200fe54 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <asm/processor.h> | 45 | #include <asm/processor.h> |
46 | #include <linux/libata.h> | 46 | #include <linux/libata.h> |
47 | #include <linux/mutex.h> | 47 | #include <linux/mutex.h> |
48 | #include <linux/ktime.h> | ||
48 | #include <scsi/scsi.h> | 49 | #include <scsi/scsi.h> |
49 | #include <scsi/scsi_host.h> | 50 | #include <scsi/scsi_host.h> |
50 | #include <scsi/scsi_device.h> | 51 | #include <scsi/scsi_device.h> |
@@ -5562,11 +5563,9 @@ static void pmcraid_set_timestamp(struct pmcraid_cmd *cmd) | |||
5562 | __be32 time_stamp_len = cpu_to_be32(PMCRAID_TIMESTAMP_LEN); | 5563 | __be32 time_stamp_len = cpu_to_be32(PMCRAID_TIMESTAMP_LEN); |
5563 | struct pmcraid_ioadl_desc *ioadl = ioarcb->add_data.u.ioadl; | 5564 | struct pmcraid_ioadl_desc *ioadl = ioarcb->add_data.u.ioadl; |
5564 | 5565 | ||
5565 | struct timeval tv; | ||
5566 | __le64 timestamp; | 5566 | __le64 timestamp; |
5567 | 5567 | ||
5568 | do_gettimeofday(&tv); | 5568 | timestamp = ktime_get_real_seconds() * 1000; |
5569 | timestamp = tv.tv_sec * 1000; | ||
5570 | 5569 | ||
5571 | pinstance->timestamp_data->timestamp[0] = (__u8)(timestamp); | 5570 | pinstance->timestamp_data->timestamp[0] = (__u8)(timestamp); |
5572 | pinstance->timestamp_data->timestamp[1] = (__u8)((timestamp) >> 8); | 5571 | pinstance->timestamp_data->timestamp[1] = (__u8)((timestamp) >> 8); |