From: Pavel Machek <pavel@suse.cz>
To: "La Monte H.P. Yarroll" <piggy@timesys.com>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.6] Fix sys_time() to get subtick correction from the new xtim
Date: Fri, 2 Apr 2004 22:48:55 +0200 [thread overview]
Message-ID: <20040402204855.GH195@elf.ucw.cz> (raw)
In-Reply-To: <405ED918.2010803@timesys.com>
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?]
prev parent reply other threads:[~2004-04-02 21:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-22 12:16 La Monte H.P. Yarroll
2004-04-02 20:48 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040402204855.GH195@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=piggy@timesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome