Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.17-pre8 /kernel/time.c

Filename:/kernel/time.c
Lines Added:4
Lines Deleted:4
Also changed in: (Previous) 2.4.17-pre7  2.4.17-pre6  2.4.17-pre5  2.4.17-pre3  2.4.17-pre4  2.4.0-test10 
(Following) 2.4.17-rc1  2.4.17-rc2  2.4.17  2.4.18-pre8  2.4.18-pre9  2.4.18-rc1 

Location
[  2.4.17-pre8
  [  kernel
     o  time.c

Patch

diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/kernel/time.c linux/kernel/time.c
--- linux-2.4.16/kernel/time.c   Mon Nov 26 10:35:00 2001
+++ linux/kernel/time.c   Wed Dec  5 16:57:21 2001
@@ -70,11 +70,11 @@
  */
 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;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.