Peter Zijlstra 1b86abc1c6 sched_clock: Expose struct clock_read_data
In order to support perf_event_mmap_page::cap_time features, an
architecture needs, aside from a userspace readable counter register,
to expose the exact clock data so that userspace can convert the
counter register into a correct timestamp.

Provide struct clock_read_data and two (seqcount) helpers so that
architectures (arm64 in specific) can expose the numbers to userspace.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20200716051130.4359-2-leo.yan@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
2020-07-20 11:50:47 +01:00
..
2020-03-21 16:00:23 +01:00
2020-01-14 12:20:48 +01:00
2020-05-09 13:57:12 +02:00
2019-04-19 19:17:04 +02:00
2020-03-21 16:00:24 +01:00
2020-02-21 11:22:15 -08:00
2018-11-23 11:51:20 +01:00
2018-11-23 11:51:21 +01:00