[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120228080851.GD21106@elte.hu>
Date: Tue, 28 Feb 2012 09:08:52 +0100
From: Ingo Molnar <mingo@...e.hu>
To: John Stultz <john.stultz@...aro.org>
Cc: lkml <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Eric Dumazet <eric.dumazet@...il.com>,
Richard Cochran <richardcochran@...il.com>
Subject: Re: [PATCH 3/7] time: Split timekeeper lock into separate
reader/writer locks
* John Stultz <john.stultz@...aro.org> wrote:
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -71,8 +71,9 @@ struct timekeeper {
> /* The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock. */
> struct timespec raw_time;
>
> - /* Seqlock for all timekeeper values */
> - seqlock_t lock;
> + /* locks for timekeeper structure */
> + seqcount_t rlock; /* This seqcount serializes readers from updates */
> + spinlock_t wlock; /* This spinlock serializes updaters */
Vertical spacing broken again - not just of the fields but of
the comments as well.
> @@ -576,11 +583,11 @@ u64 timekeeping_max_deferment(void)
> unsigned long seq;
> u64 ret;
> do {
sigh.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists