summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2020-07-16 13:11:24 +0800
committerWill Deacon <will@kernel.org>2020-07-20 11:50:47 +0100
commit1b86abc1c645ad5c9c7bf70910cb3ce73939d2d7 (patch)
tree8f72d9b938e23f26de7f0be72a0e11efc77c8b1c /kernel/sysctl.c
parent539707caa1a89ee4efc57b4e4231c20c46575ccc (diff)
downloadlwn-1b86abc1c645ad5c9c7bf70910cb3ce73939d2d7.tar.gz
lwn-1b86abc1c645ad5c9c7bf70910cb3ce73939d2d7.zip
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>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions