Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167516298
D34568.id103959.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
503 B
Referenced Files
None
Subscribers
None
D34568.id103959.diff
View Options
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -256,11 +256,11 @@
uint64_t runtime, curtime, switchtime;
if (targettd == NULL) { /* current thread */
- critical_enter();
+ spinlock_enter();
switchtime = PCPU_GET(switchtime);
curtime = cpu_ticks();
runtime = curthread->td_runtime;
- critical_exit();
+ spinlock_exit();
runtime += curtime - switchtime;
} else {
PROC_LOCK_ASSERT(targettd->td_proc, MA_OWNED);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 10:20 AM (1 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37132754
Default Alt Text
D34568.id103959.diff (503 B)
Attached To
Mode
D34568: Move the arm64 DMAP creation to C
Attached
Detach File
Event Timeline
Log In to Comment