Re: [RFC][PATCH 0/4] Another go at ktime_get_raw_fast_ns()

From: John Stultz
Date: Tue Mar 24 2015 - 11:20:13 EST


On Thu, Mar 19, 2015 at 2:31 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> Hi John,
>
> So yeah, I just didn't try hard enough it seems; how about this?

Yea, this looks much better! I'll queue it up for testing and if that
goes well include it for 4.1.

> Also, I think we should double check that everything passed to
> tk_setup_internals(.clock) is either static storage or RCU-sched freed,
> because with the whole latch thing one CPUs (fast) access might still be
> in progress while the other is freeing the clock struct.
>
> Not sure what the lifetime rules of struct clocksource are here.

At one point it was install and never remove, but I think Thomas
changed that awhile back, so I think your concern here is a good one.

thanks
-john
--
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/