summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-09-25 13:03:57 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-12 07:04:10 +0200
commitf013c1476e3c1184aa18d7e33fd219e253db192f (patch)
treeb4f5916548b24555011755f9cd52f82c2b7f669e /cpukit/score/src/smp.c
parenttimecounter: Merge FreeBSD change r304285 (diff)
downloadrtems-f013c1476e3c1184aa18d7e33fd219e253db192f.tar.bz2
timecounter: Merge FreeBSD change r288216
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 Update #3175.
Diffstat (limited to 'cpukit/score/src/smp.c')
0 files changed, 0 insertions, 0 deletions