Re: [RFC PATCH] Introduce timekeeper latch synchronization

From: Peter Zijlstra
Date: Fri Sep 13 2013 - 03:32:24 EST


On Thu, Sep 12, 2013 at 10:52:53PM -0400, Mathieu Desnoyers wrote:
> OK! Here is the full implementation of the idea against Linux
> timekeeper, ntp, and PPS. It appears that ntp and PPS were relying on
> the timekeeper seqlock too. And guess what, after booting my laptop with
> this kernel there still no smoke coming out of it after a good 5 minutes
> of testing. ;-)
>
> Comments are welcome.

I think that moving stuff into structures is a worthwhile change on its
own, but I'll leave John and Thomas to decide on all that.

The latch thing does make the update side slightly more expensive due to
having to do that copy every time, but ideally that wouldn't happen all
that often.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/