author: Arnd Bergmann <arnd@arndb.de> 2015-11-25 16:22:25 +0100
committer: Al Viro <viro@zeniv.linux.org.uk> 2015-12-06 21:17:17 -0500
commit: 03927c8acb63100046260711c06ba28b6b5936fb
parent: 0125f504ed320826a78b43d636de957d703465a8
Commit Summary:
Diffstat:
1 file changed, 4 insertions, 3 deletions
diff --git a/fs/coredump.c b/fs/coredump.c
index 1777331eee76..b3c153ca435d 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -32,6 +32,7 @@
#include <linux/pipe_fs_i.h>
#include <linux/oom.h>
#include <linux/compat.h>
+#include <linux/timekeeping.h>
#include <asm/uaccess.h>
#include <asm/mmu_context.h>
@@ -232,9 +233,10 @@ static int format_corename(struct core_name *cn, struct coredump_params *cprm)
break;
/* UNIX time of coredump */
case 't': {
- struct timeval tv;
- do_gettimeofday(&tv);
- err = cn_printf(cn, "%lu", tv.tv_sec);
+ time64_t time;
+
+ time = ktime_get_real_seconds();
+ err = cn_printf(cn, "%lld", time);
break;
}
/* hostname */