diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-10-16 09:46:55 -0400 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-15 08:56:54 +0100 |
commit | ea389aaaddefd1606632843e38923ddba098574b (patch) | |
tree | 74dcb00c3a68e619814e631442107ed632014bb6 /cpukit/score/src/threadqops.c | |
parent | timecounter: Let kern.timecounter.stepwarnings be set as a tunable (diff) | |
download | rtems-ea389aaaddefd1606632843e38923ddba098574b.tar.bz2 |
timecounter: Lock the timecounter list
Timecounter registration is dynamic, i.e., there is no requirement that
timecounters must be registered during single-threaded boot. Loadable
drivers may in principle register timecounters (which can be switched to
automatically). Timecounters cannot be unregistered, though this could
be implemented.
Registered timecounters belong to a global linked list. Add a mutex to
synchronize insertions and the traversals done by (mpsafe) sysctl
handlers. No functional change intended.
Reviewed by: imp, kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32511
Diffstat (limited to 'cpukit/score/src/threadqops.c')
0 files changed, 0 insertions, 0 deletions