From af55753a063a04a847a53c2946cd5fbf413a1e0f Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 17 Feb 2003 09:55:10 +0000 Subject: Move a bunch of flags from the KSE to the thread. I was in two minds as to where to put them in the first case.. I should have listenned to the other mind. Submitted by: parts by davidxu@ Reviewed by: jeff@ mini@ --- sys/kern/sched_4bsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/sched_4bsd.c') diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 325911f..605fcbd 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -123,7 +123,7 @@ maybe_resched(struct thread *td) mtx_assert(&sched_lock, MA_OWNED); if (td->td_priority < curthread->td_priority && curthread->td_kse) - curthread->td_kse->ke_flags |= KEF_NEEDRESCHED; + curthread->td_flags |= TDF_NEEDRESCHED; } /* @@ -535,7 +535,7 @@ sched_switchout(struct thread *td) td->td_lastcpu = ke->ke_oncpu; td->td_last_kse = ke; ke->ke_oncpu = NOCPU; - ke->ke_flags &= ~KEF_NEEDRESCHED; + td->td_flags &= ~TDF_NEEDRESCHED; /* * At the last moment, if this thread is still marked RUNNING, * then put it back on the run queue as it has not been suspended -- cgit v1.1