diff options
author | Stephan Uphoff <ups@FreeBSD.org> | 2004-12-07 18:17:24 +0000 |
---|---|---|
committer | Stephan Uphoff <ups@FreeBSD.org> | 2004-12-07 18:17:24 +0000 |
commit | 565647414519bd4c801cb71c49b14a3c03780bc7 (patch) | |
tree | 379f71b0372b8d9fe1a049464f5f15afc4495018 | |
parent | f4427f30f7881c1ae03b7a402bc787e66e87021f (diff) |
Notes
-rw-r--r-- | sys/kern/sched_4bsd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 83dba8bddbee..ae8091f887c5 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -811,6 +811,9 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) } } + if (newtd) + newtd->td_flags |= (td->td_flags & TDF_NEEDRESCHED); + td->td_lastcpu = td->td_oncpu; td->td_flags &= ~TDF_NEEDRESCHED; td->td_pflags &= ~TDP_OWEPREEMPT; |