Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136795140
D13298.id35986.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D13298.id35986.diff
View Options
Index: sys/kern/sched_ule.c
===================================================================
--- sys/kern/sched_ule.c
+++ sys/kern/sched_ule.c
@@ -1405,7 +1405,6 @@
/* Add thread0's load since it's running. */
TDQ_LOCK(tdq);
- td_get_sched(&thread0)->ts_cpu = curcpu; /* Something valid to start */
thread0.td_lock = TDQ_LOCKPTR(TDQ_SELF());
tdq_load_add(tdq, &thread0);
tdq->tdq_lowpri = thread0.td_priority;
@@ -1642,6 +1641,7 @@
ts0->ts_ltick = ticks;
ts0->ts_ftick = ticks;
ts0->ts_slice = 0;
+ ts0->ts_cpu = curcpu; /* set valid CPU number */
}
/*
@@ -2453,7 +2453,6 @@
* Pick the destination cpu and if it isn't ours transfer to the
* target cpu.
*/
- td_get_sched(td)->ts_cpu = curcpu; /* Pick something valid to start */
cpu = sched_pickcpu(td, flags);
tdq = sched_setcpu(td, cpu, flags);
tdq_add(tdq, td, flags);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 20, 2:45 PM (2 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25730835
Default Alt Text
D13298.id35986.diff (862 B)
Attached To
Mode
D13298: Fix regression issue after r326218
Attached
Detach File
Event Timeline
Log In to Comment