summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-07-23 15:10:01 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-07-23 15:10:01 +0000
commitc38fcb5dc35986b8a93bf2107f800a890e2cea9b (patch)
treec8a7877f0b2929482de7d527bf6c6db44a414fdf /sys/man/2
parent2c1727e55c48f46b3294b5a474de90a4cef8f70c (diff)
arm64: use generic timer virtual counter for cycles()
We used to use performance cycle counter for cycles(), but it is kind of useless in userspace as each core has its own counter and hence not comparable between cores. Also, the cycle counter stops counting when the cores are idle. Most callers expect cycles() to return a high resolution timestamp instead, so do the best we can do here and enable the userspace generic timer virtual counter.
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/cputime1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/man/2/cputime b/sys/man/2/cputime
index 4d6440116..282e93ade 100644
--- a/sys/man/2/cputime
+++ b/sys/man/2/cputime
@@ -39,6 +39,7 @@ if any, and stores it via
Currently supported architectures are
.BR 386 ,
.BR amd64 ,
+.B arm64
and
.BR power ;
on all others,