diff options
Diffstat (limited to 'kernel/time.c')
-rw-r--r-- | kernel/time.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/time.c b/kernel/time.c index 2289a8d68314..1afcc78dc3b1 100644 --- a/kernel/time.c +++ b/kernel/time.c | |||
@@ -57,11 +57,7 @@ EXPORT_SYMBOL(sys_tz); | |||
57 | */ | 57 | */ |
58 | asmlinkage long sys_time(time_t __user * tloc) | 58 | asmlinkage long sys_time(time_t __user * tloc) |
59 | { | 59 | { |
60 | time_t i; | 60 | time_t i = get_seconds(); |
61 | struct timespec tv; | ||
62 | |||
63 | getnstimeofday(&tv); | ||
64 | i = tv.tv_sec; | ||
65 | 61 | ||
66 | if (tloc) { | 62 | if (tloc) { |
67 | if (put_user(i,tloc)) | 63 | if (put_user(i,tloc)) |