Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148500790
D23270.id67104.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
736 B
Referenced Files
None
Subscribers
None
D23270.id67104.diff
View Options
Index: sys/kern/sched_ule.c
===================================================================
--- sys/kern/sched_ule.c
+++ sys/kern/sched_ule.c
@@ -2121,6 +2121,7 @@
*/
TDQ_LOCK_ASSERT(tdq, MA_OWNED | MA_NOTRECURSED);
newtd = choosethread();
+ newtd->td_oncpu = cpuid;
sched_pctcpu_update(td_get_sched(newtd), 0);
TDQ_UNLOCK(tdq);
@@ -2145,7 +2146,6 @@
#endif
td->td_oncpu = NOCPU;
cpu_switch(td, newtd, mtx);
- cpuid = td->td_oncpu = PCPU_GET(cpuid);
SDT_PROBE0(sched, , , on__cpu);
#ifdef HWPMC_HOOKS
@@ -2914,6 +2914,7 @@
td->td_oncpu = NOCPU;
}
newtd = choosethread();
+ newtd->td_oncpu = PCPU_GET(cpuid);
spinlock_enter();
TDQ_UNLOCK(tdq);
KASSERT(curthread->td_md.md_spinlock_count == 1,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 7:07 AM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29953700
Default Alt Text
D23270.id67104.diff (736 B)
Attached To
Mode
D23270: ULE: set td_oncpu before switching.
Attached
Detach File
Event Timeline
Log In to Comment