Add latch for data used by clock read operations. This is in preparation for the clock latch synchronization scheme. "cycle_last" rely on timekeeper seqlock synchronization, and will therefore need to be latched.
Add: - cycle_last_latch (array of 2 elements), - read_latch(), - update_latch(). Signed-off-by: Mathieu Desnoyers <[email protected]> Cc: John Stultz <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> --- include/linux/clocksource.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index dbbf8aa..ef9c2e5 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -180,6 +180,10 @@ struct clocksource { #ifdef CONFIG_ARCH_CLOCKSOURCE_DATA struct arch_clocksource_data archdata; #endif + cycle_t (*read_latch)(struct clocksource *cs, int index); + void (*update_latch)(struct clocksource *cs, int oldindex, + int newindex); + cycle_t cycle_last_latch[2]; const char *name; struct list_head list; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

