Fix UP build.

MFC after:	2 weeks
This commit is contained in:
Matthew D Fleming 2010-09-02 16:23:05 +00:00
parent 73e39d6137
commit ba4932b5a2

View File

@ -1797,8 +1797,10 @@ sched_switch(struct thread *td, struct thread *newtd, int flags)
srqflag = (flags & SW_PREEMPT) ? srqflag = (flags & SW_PREEMPT) ?
SRQ_OURSELF|SRQ_YIELDING|SRQ_PREEMPTED : SRQ_OURSELF|SRQ_YIELDING|SRQ_PREEMPTED :
SRQ_OURSELF|SRQ_YIELDING; SRQ_OURSELF|SRQ_YIELDING;
#ifdef SMP
if (THREAD_CAN_MIGRATE(td) && !THREAD_CAN_SCHED(td, ts->ts_cpu)) if (THREAD_CAN_MIGRATE(td) && !THREAD_CAN_SCHED(td, ts->ts_cpu))
ts->ts_cpu = sched_pickcpu(td, 0); ts->ts_cpu = sched_pickcpu(td, 0);
#endif
if (ts->ts_cpu == cpuid) if (ts->ts_cpu == cpuid)
tdq_runq_add(tdq, td, srqflag); tdq_runq_add(tdq, td, srqflag);
else { else {