aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/terminal.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-10-16 13:46:55 +0000
committerMark Johnston <markj@FreeBSD.org>2021-10-18 13:56:59 +0000
commit621fd9dcb2d83daab477c130bc99b905f6fc27dc (patch)
tree5c7912929be6d5e76d4bd4b43f85114fe458d6f5 /sys/sys/terminal.h
parent06ebadc5f555fd7fa6f869af1e5daf834b1bb04e (diff)
downloadsrc-621fd9dcb2d83daab477c130bc99b905f6fc27dc.tar.gz
src-621fd9dcb2d83daab477c130bc99b905f6fc27dc.zip
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 'sys/sys/terminal.h')
0 files changed, 0 insertions, 0 deletions