lkml.org 
[lkml]   [2012]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/7] time: Split timekeeper lock into separate reader/writer locks

* John Stultz <john.stultz@linaro.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


\
 
 \ /
  Last update: 2012-02-28 09:11    [W:0.057 / U:2.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site