Messages in this thread | ![/](/images/icornerl.gif) | | Date | Fri, 2 Apr 2004 22:48:55 +0200 | From | Pavel Machek <> | Subject | Re: [PATCH 2.6] Fix sys_time() to get subtick correction from the new xtim |
| |
Hi!
> --- lkml/arch/ia64/ia32/sys_ia32.c~fix-all-time-sys_time > 2004-03-16 10:01:23.000000000 -0500 > +++ lkml-piggy/arch/ia64/ia32/sys_ia32.c 2004-03-16 > 10:01:23.000000000 -0500 > @@ -1678,10 +1678,11 @@ asmlinkage long > sys32_time (int *tloc) > { > int i; > + struct timeval tv; > + > + do_gettimeofday(&tv); > + i = tv.tv_sec; > > - /* SMP: This is fairly trivial. We grab CURRENT_TIME and > - stuff it to user space. No side effects */ > - i = get_seconds(); > if (tloc) { > if (put_user(i, tloc)) > i = -EFAULT;
This patch likely suffered some whitespace damage, and you probably want to correct tabs vs. spacing in indentation. Pavel
-- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |