Re: [PATCH 2.6] Fix sys_time() to get subtick correction from the new xtim

From: Pavel Machek
Date: Fri Apr 02 2004 - 16:37:44 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/