svn commit: r212153 - head/sys/kern
mdf at FreeBSD.org
mdf at FreeBSD.org
Thu Sep 2 16:25:52 UTC 2010
On Thu, Sep 2, 2010 at 9:23 AM, Matthew D Fleming <mdf at freebsd.org> wrote:
> Author: mdf
> Date: Thu Sep 2 16:23:05 2010
> New Revision: 212153
> URL: http://svn.freebsd.org/changeset/base/212153
>
> Log:
> Fix UP build.
Noticed by b.f. (bf1783 at gmail dot com)
We apologize for the inconvenience.
matthew
> MFC after: 2 weeks
>
> Modified:
> head/sys/kern/sched_ule.c
>
> Modified: head/sys/kern/sched_ule.c
> ==============================================================================
> --- head/sys/kern/sched_ule.c Thu Sep 2 16:11:12 2010 (r212152)
> +++ head/sys/kern/sched_ule.c Thu Sep 2 16:23:05 2010 (r212153)
> @@ -1797,8 +1797,10 @@ sched_switch(struct thread *td, struct t
> srqflag = (flags & SW_PREEMPT) ?
> SRQ_OURSELF|SRQ_YIELDING|SRQ_PREEMPTED :
> SRQ_OURSELF|SRQ_YIELDING;
> +#ifdef SMP
> if (THREAD_CAN_MIGRATE(td) && !THREAD_CAN_SCHED(td, ts->ts_cpu))
> ts->ts_cpu = sched_pickcpu(td, 0);
> +#endif
> if (ts->ts_cpu == cpuid)
> tdq_runq_add(tdq, td, srqflag);
> else {
>
More information about the svn-src-head
mailing list