svn commit: r328330 - head/sys/kern
Wojciech Macek
wma at FreeBSD.org
Wed Jan 24 13:57:02 UTC 2018
Author: wma
Date: Wed Jan 24 13:57:01 2018
New Revision: 328330
URL: https://svnweb.freebsd.org/changeset/base/328330
Log:
Reverting r328320
Modified:
head/sys/kern/sched_ule.c
Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c Wed Jan 24 13:37:07 2018 (r328329)
+++ head/sys/kern/sched_ule.c Wed Jan 24 13:57:01 2018 (r328330)
@@ -1405,7 +1405,6 @@ sched_setup(void *dummy)
/* 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;
@@ -2455,7 +2454,6 @@ sched_add(struct thread *td, int flags)
* 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);
More information about the svn-src-all
mailing list