summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-09-25 13:03:57 +0000
committerkib <kib@FreeBSD.org>2015-09-25 13:03:57 +0000
commita20643c9c7a0c2d2eea66d084dcb051eb135277c (patch)
tree55a3724048ed67c2e9f6fe36cc1bd5c6b2fe712a /lib/libfetch
parentdc7c5180b5ec847963c61423d1b49da1ada833eb (diff)
downloadFreeBSD-src-a20643c9c7a0c2d2eea66d084dcb051eb135277c.zip
FreeBSD-src-a20643c9c7a0c2d2eea66d084dcb051eb135277c.tar.gz
Use per-cpu values for base and last in tc_cpu_ticks(). The values
are updated lockess, different CPUs write its own view of timecounter state. The critical section is done for safety, callers of tc_cpu_ticks() are supposed to already enter critical section, or to own a spinlock. The change fixes sporadical reports of too high values reported for the (W)CPU on platforms that do not provide cpu ticker and use tc_cpu_ticks(), in particular, arm*. Diagnosed and reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'lib/libfetch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud