lkml.org 
[lkml]   [2004]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.045 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site