From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
John Stultz <john.stultz@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Richard Cochran <richardcochran@gmail.com>,
Prarit Bhargava <prarit@redhat.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org, lttng-dev@lists.lttng.org
Subject: Re: [RFC PATCH] Introduce timekeeper latch synchronization
Date: Fri, 13 Sep 2013 11:30:20 -0400 [thread overview]
Message-ID: <20130913153020.GA24383@Krystal> (raw)
In-Reply-To: <20130913025253.GA17218@Krystal>
* Mathieu Desnoyers (mathieu.desnoyers@efficios.com) wrote:
[...]
> @@ -1362,29 +1398,31 @@ static inline void old_vsyscall_fixup(struct timekeeper *tk)
> static void update_wall_time(void)
> {
[...]
> - /*
> - * Update the real timekeeper.
> - *
> - * We could avoid this memcpy by switching pointers, but that
> - * requires changes to all other timekeeper usage sites as
> - * well, i.e. move the timekeeper pointer getter into the
> - * spinlocked/seqcount protected sections. And we trade this
> - * memcpy under the timekeeper_seq against one before we start
> - * updating.
> - */
> - memcpy(real_tk, tk, sizeof(*tk));
> - timekeeping_update(real_tk, action);
This line above appears to be important ;-) Let's see if my screensaver
stops misbehaving if I put it back. I will of course send a v2 after
some more testing.
By the way, if there are some standard test-bench for timekeeping, I'd
be very interested to hear about them.
Thanks!
Mathieu
> - write_seqcount_end(&timekeeper_seq);
> out:
> + timekeeper_write_end(&latch_timekeeper);
> raw_spin_unlock_irqrestore(&timekeeper_lock, flags);
> }
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
next prev parent reply other threads:[~2013-09-13 15:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 2:52 [RFC PATCH] Introduce timekeeper latch synchronization Mathieu Desnoyers
2013-09-13 7:31 ` Peter Zijlstra
2013-09-13 15:30 ` Mathieu Desnoyers [this message]
2013-09-13 19:20 ` John Stultz
2013-09-14 1:18 ` Mathieu Desnoyers
2013-09-13 16:13 ` Thomas Gleixner
2013-09-13 17:05 ` Mathieu Desnoyers
2013-09-13 17:41 ` John Stultz
2013-09-13 18:20 ` Mathieu Desnoyers
2013-09-13 18:28 ` 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=20130913153020.GA24383@Krystal \
--to=mathieu.desnoyers@efficios.com \
--cc=gregkh@linuxfoundation.org \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lttng-dev@lists.lttng.org \
--cc=mingo@elte.hu \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=prarit@redhat.com \
--cc=richardcochran@gmail.com \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).