]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time.c
r8169: more phy init for the 8168
[linux-2.6-omap-h63xx.git] / kernel / time.c
index 2289a8d68314f35f3c6b10f7edf8e53b721b8857..2d5b6a682138d12af18eb2b93caeca9c4443c56f 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/syscalls.h>
 #include <linux/security.h>
 #include <linux/fs.h>
-#include <linux/module.h>
 
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
@@ -57,11 +56,7 @@ EXPORT_SYMBOL(sys_tz);
  */
 asmlinkage long sys_time(time_t __user * tloc)
 {
-       time_t i;
-       struct timespec tv;
-
-       getnstimeofday(&tv);
-       i = tv.tv_sec;
+       time_t i = get_seconds();
 
        if (tloc) {
                if (put_user(i,tloc))