summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2020-07-04 08:06:07 +0000
committeranton <anton@openbsd.org>2020-07-04 08:06:07 +0000
commitb609c6162eecdc2b88363239960056f85f454ba3 (patch)
treee9cadb2ce03bf1dccbd154dc63458e3279f667d5 /sys/kern/kern_timeout.c
parentPermit the stack to check transport and network checksums. Although the link (diff)
downloadwireguard-openbsd-b609c6162eecdc2b88363239960056f85f454ba3.tar.xz
wireguard-openbsd-b609c6162eecdc2b88363239960056f85f454ba3.zip
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.c12
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)