[PATCH 2/8] time: Add timekeeping snapshot code capturing system time and counter

2016-03-03 Thread John Stultz
From: "Christopher S. Hall" In the current timekeeping code there isn't any interface to atomically capture the current relationship between the system counter and system time. ktime_get_snapshot() returns this triple (counter, monotonic raw, realtime) in the

[PATCH 2/8] time: Add timekeeping snapshot code capturing system time and counter

2016-03-02 Thread John Stultz
From: "Christopher S. Hall" In the current timekeeping code there isn't any interface to atomically capture the current relationship between the system counter and system time. ktime_get_snapshot() returns this triple (counter, monotonic raw, realtime) in the