From: Thomas Gleixner <tglx@linutronix.de>
To: John Stultz <john.stultz@linaro.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@redhat.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Subject: Re: [PATCH] timekeeping: Another fix to the VSYSCALL_OLD update_vsyscall
Date: Wed, 13 Aug 2014 02:20:16 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.10.1408130216210.3323@nanos> (raw)
In-Reply-To: <1407858749-15422-1-git-send-email-john.stultz@linaro.org>
On Tue, 12 Aug 2014, John Stultz wrote:
> Benjamin Herrenschmidt pointed out that I firuther missed
s/firuther/further ?
> modifying update_vsyscall after the wall_to_mono value was
> changed to a timespec64. This causes issues on powerpc32,
> which expects a 32bit timespec.
>
> This patch fixes the problem my properly converting from
s/my/by/
> a timespec64 to a timespec before passing the value on to
> the arch-specific vsyscall logic.
Other than that, please add my Reviewed-by, and send it to Linus
either as patch or pull request as I'm really in vacation mode NOW.
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Signed-off-by: John Stultz <john.stultz@linaro.org>
> ---
> kernel/time/timekeeping.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
> index f36b028..fb4a9c2 100644
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -338,10 +338,11 @@ EXPORT_SYMBOL_GPL(ktime_get_mono_fast_ns);
>
> static inline void update_vsyscall(struct timekeeper *tk)
> {
> - struct timespec xt;
> + struct timespec xt, wm;
>
> xt = timespec64_to_timespec(tk_xtime(tk));
> - update_vsyscall_old(&xt, &tk->wall_to_monotonic, tk->tkr.clock, tk->tkr.mult,
> + wm = timespec64_to_timespec(tk->wall_to_monotonic);
> + update_vsyscall_old(&xt, &wm, tk->tkr.clock, tk->tkr.mult,
> tk->tkr.cycle_last);
> }
>
> --
> 1.9.1
>
>
next prev parent reply other threads:[~2014-08-13 0:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 15:52 John Stultz
2014-08-13 0:20 ` Thomas Gleixner [this message]
2014-08-13 19:47 John Stultz
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=alpine.DEB.2.10.1408130216210.3323@nanos \
--to=tglx@linutronix.de \
--cc=benh@kernel.crashing.org \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.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
all inboxes | Powered by JetHome®