diff options
author | anton <anton@cvs.openbsd.org> | 2020-07-04 08:06:09 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2020-07-04 08:06:09 +0000 |
commit | 1faadd8c36a6a487d4e3f4fd54fe416e1f280b37 (patch) | |
tree | 6f5235b7628fb30392e139ca02b89dd42c95539c /sys/kern/kern_timeout.c | |
parent | 666a3dd14c457152cb5ed221352bd68aa1d26f07 (diff) |
It's been agreed upon that global locks should be expressed using
capital letters in locking annotations. Therefore harmonize the existing
annotations.
Also, if multiple locks are required they should be delimited using
commas.
ok mpi@
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r-- | sys/kern/kern_timeout.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index eab14f2da7b..b67c5a2163e 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_timeout.c,v 1.72 2020/02/18 12:13:40 mpi Exp $ */ +/* $OpenBSD: kern_timeout.c,v 1.73 2020/07/04 08:06:08 anton Exp $ */ /* * Copyright (c) 2001 Thomas Nordin <nordin@openbsd.org> * Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org> @@ -47,12 +47,12 @@ * Locks used to protect global variables in this file: * * I immutable after initialization - * t timeout_mutex + * T timeout_mutex */ struct mutex timeout_mutex = MUTEX_INITIALIZER(IPL_HIGH); void *softclock_si; /* [I] softclock() interrupt handle */ -struct timeoutstat tostat; /* [t] statistics and totals */ +struct timeoutstat tostat; /* [T] statistics and totals */ /* * Timeouts are kept in a hierarchical timing wheel. The to_time is the value @@ -64,9 +64,9 @@ struct timeoutstat tostat; /* [t] statistics and totals */ #define WHEELMASK 255 #define WHEELBITS 8 -struct circq timeout_wheel[BUCKETS]; /* [t] Queues of timeouts */ -struct circq timeout_todo; /* [t] Due or needs scheduling */ -struct circq timeout_proc; /* [t] Due + needs process context */ +struct circq timeout_wheel[BUCKETS]; /* [T] Queues of timeouts */ +struct circq timeout_todo; /* [T] Due or needs scheduling */ +struct circq timeout_proc; /* [T] Due + needs process context */ #define MASKWHEEL(wheel, time) (((time) >> ((wheel)*WHEELBITS)) & WHEELMASK) |