Thread (101 messages) 101 messages, 17 authors, 2014-06-03

[RFC 31/32] scsi: fnic: use current_kernel_time() for timestamp

From: Arnd Bergmann <arnd@arndb.de>
Date: 2014-05-30 20:10:27
Also in: linux-fsdevel, linux-scsi, lkml
Subsystem: cisco fcoe hba driver, scsi subsystem, the rest · Maintainers: Satish Kharat, Sesidhar Baddela, Karan Tilak Kumar, "James E.J. Bottomley", "Martin K. Petersen", Linus Torvalds

The fnic driver currently uses the CURRENT_TIME macro to
generate a timestamp. Since this is otherwise used only in
file system code and we want to change the type, it's
better for this driver to use the equivalent function that
continues to return a struct timespec.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Hiral Patel <redacted>
Cc: Suma Ramars <redacted>
Cc: Brian Uchino <redacted>
Cc: linux-scsi@vger.kernel.org
---
 drivers/scsi/fnic/fnic_trace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/fnic/fnic_trace.c b/drivers/scsi/fnic/fnic_trace.c
index c772859..2659538 100644
--- a/drivers/scsi/fnic/fnic_trace.c
+++ b/drivers/scsi/fnic/fnic_trace.c
@@ -612,7 +612,7 @@ int fnic_fc_trace_set_data(u32 host_no, u8 frame_type,
 			fc_trace_entries.rd_idx = 0;
 	}
 
-	fc_buf->time_stamp = CURRENT_TIME;
+	fc_buf->time_stamp = current_kernel_time();
 	fc_buf->host_no = host_no;
 	fc_buf->frame_type = frame_type;
 
-- 
1.8.3.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help