Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167044438
D33014.id98765.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
526 B
Referenced Files
None
Subscribers
None
D33014.id98765.diff
View Options
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -99,7 +99,6 @@
/* Mutex to protect the timecounter list. */
static struct mtx tc_lock;
-MTX_SYSINIT(tc_lock, &tc_lock, "tc", MTX_DEF);
int tc_min_ticktock_freq = 1;
@@ -1989,6 +1988,8 @@
TUNABLE_STR_FETCH("kern.timecounter.hardware", tc_from_tunable,
sizeof(tc_from_tunable));
+
+ mtx_init(&tc_lock, "tc", NULL, MTX_DEF);
}
SYSINIT(timehands, SI_SUB_TUNABLES, SI_ORDER_ANY, inittimehands, NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 6:40 PM (9 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36950888
Default Alt Text
D33014.id98765.diff (526 B)
Attached To
Mode
D33014: timecounter: Initialize tc_lock earlier
Attached
Detach File
Event Timeline
Log In to Comment