Page MenuHomeFreeBSD

D23270.id67104.diff
No OneTemporary

D23270.id67104.diff

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

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)

Event Timeline