aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time.c')
-rw-r--r--kernel/time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/time.c b/kernel/time.c
index ffad77ad6..1a1e73564 100644
--- a/kernel/time.c
+++ b/kernel/time.c
@@ -70,11 +70,11 @@ extern rwlock_t xtime_lock;
*/
asmlinkage long sys_time(int * tloc)
{
- int i;
+ struct timeval now;
+ int i;
- /* SMP: This is fairly trivial. We grab CURRENT_TIME and
- stuff it to user space. No side effects */
- i = CURRENT_TIME;
+ do_gettimeofday(&now);
+ i = now.tv_sec;
if (tloc) {
if (put_user(i,tloc))
i = -EFAULT;