diff options
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c index 935cfc769cb6..c3524bcefd54 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.c +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c | |||
@@ -57,6 +57,7 @@ | |||
57 | #include <linux/dma-mapping.h> | 57 | #include <linux/dma-mapping.h> |
58 | #include <linux/sort.h> | 58 | #include <linux/sort.h> |
59 | #include <linux/io.h> | 59 | #include <linux/io.h> |
60 | #include <linux/time.h> | ||
60 | 61 | ||
61 | #include "mpt2sas_base.h" | 62 | #include "mpt2sas_base.h" |
62 | 63 | ||
@@ -2946,6 +2947,7 @@ _base_send_ioc_init(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
2946 | Mpi2IOCInitRequest_t mpi_request; | 2947 | Mpi2IOCInitRequest_t mpi_request; |
2947 | Mpi2IOCInitReply_t mpi_reply; | 2948 | Mpi2IOCInitReply_t mpi_reply; |
2948 | int r; | 2949 | int r; |
2950 | struct timeval current_time; | ||
2949 | 2951 | ||
2950 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, | 2952 | dinitprintk(ioc, printk(MPT2SAS_DEBUG_FMT "%s\n", ioc->name, |
2951 | __func__)); | 2953 | __func__)); |
@@ -2996,6 +2998,13 @@ _base_send_ioc_init(struct MPT2SAS_ADAPTER *ioc, int sleep_flag) | |||
2996 | cpu_to_le32(ioc->reply_post_free_dma); | 2998 | cpu_to_le32(ioc->reply_post_free_dma); |
2997 | #endif | 2999 | #endif |
2998 | 3000 | ||
3001 | /* This time stamp specifies number of milliseconds | ||
3002 | * since epoch ~ midnight January 1, 1970. | ||
3003 | */ | ||
3004 | do_gettimeofday(¤t_time); | ||
3005 | mpi_request.TimeStamp = (current_time.tv_sec * 1000) + | ||
3006 | (current_time.tv_usec >> 3); | ||
3007 | |||
2999 | if (ioc->logging_level & MPT_DEBUG_INIT) { | 3008 | if (ioc->logging_level & MPT_DEBUG_INIT) { |
3000 | u32 *mfp; | 3009 | u32 *mfp; |
3001 | int i; | 3010 | int i; |