Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150968660
D22624.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
919 B
Referenced Files
None
Subscribers
None
D22624.id.diff
View Options
Index: head/sys/kern/sched_ule.c
===================================================================
--- head/sys/kern/sched_ule.c
+++ head/sys/kern/sched_ule.c
@@ -1463,7 +1463,7 @@
/* Add thread0's load since it's running. */
TDQ_LOCK(tdq);
- thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF());
+ thread0.td_lock = TDQ_LOCKPTR(tdq);
tdq_load_add(tdq, &thread0);
tdq->tdq_lowpri = thread0.td_priority;
TDQ_UNLOCK(tdq);
@@ -2913,6 +2913,7 @@
spinlock_exit();
PCPU_SET(switchtime, cpu_ticks());
PCPU_SET(switchticks, ticks);
+ PCPU_GET(idlethread)->td_lock = TDQ_LOCKPTR(tdq);
} else {
tdq = TDQ_SELF();
MPASS(td->td_lock == TDQ_LOCKPTR(tdq));
@@ -2943,8 +2944,6 @@
*/
cpuid = PCPU_GET(cpuid);
tdq = TDQ_SELF();
- if (TD_IS_IDLETHREAD(td))
- td->td_lock = TDQ_LOCKPTR(tdq);
MPASS(td->td_lock == TDQ_LOCKPTR(tdq));
td->td_oncpu = cpuid;
TDQ_LOCK_ASSERT(tdq, MA_OWNED | MA_NOTRECURSED);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 5:51 AM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30941649
Default Alt Text
D22624.id.diff (919 B)
Attached To
Mode
D22624: Initialize the idlethread lock pointer earlier so we don't evaluate it onvery fork exit.
Attached
Detach File
Event Timeline
Log In to Comment