View | Details | Raw Unified | Return to bug 192926
Collapse All | Expand All

(-)b/sys/kern/sched_ule.c (-1 / +2 lines)
Lines 1888-1894 sched_switch(struct thread *td, struct thread *newtd, int flags) Link Here
1888
	ts->ts_rltick = ticks;
1888
	ts->ts_rltick = ticks;
1889
	td->td_lastcpu = td->td_oncpu;
1889
	td->td_lastcpu = td->td_oncpu;
1890
	td->td_oncpu = NOCPU;
1890
	td->td_oncpu = NOCPU;
1891
	preempted = !(td->td_flags & TDF_SLICEEND);
1891
	preempted = !((td->td_flags & TDF_SLICEEND) ||
1892
		(flags & SWT_RELINQUISH));
1892
	td->td_flags &= ~(TDF_NEEDRESCHED | TDF_SLICEEND);
1893
	td->td_flags &= ~(TDF_NEEDRESCHED | TDF_SLICEEND);
1893
	td->td_owepreempt = 0;
1894
	td->td_owepreempt = 0;
1894
	if (!TD_IS_IDLETHREAD(td))
1895
	if (!TD_IS_IDLETHREAD(td))

Return to bug 192926