Changeset ea389aaa in rtems
- Timestamp:
-
10/16/21 13:46:55
(3 years ago)
- Author:
- Mark Johnston <markj@…>
- Branches:
- master
- Children:
- 34675587
- Parents:
- 66d4077
- git-author:
- Mark Johnston <markj@…> (10/16/21 13:46:55)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (11/15/21 07:56:54)
- Message:
-
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
-
(No files)
-