]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time.c
oom: add oom_kill_allocating_task sysctl
[linux-2.6-omap-h63xx.git] / kernel / time.c
index 2289a8d68314f35f3c6b10f7edf8e53b721b8857..1afcc78dc3b1d9a3da6439497d2d69e65bc05913 100644 (file)
@@ -57,11 +57,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))