diff options
author | ups <ups@FreeBSD.org> | 2005-04-08 03:37:53 +0000 |
---|---|---|
committer | ups <ups@FreeBSD.org> | 2005-04-08 03:37:53 +0000 |
commit | 7bac02c1465f16f80ca4f8673c20be951b6922a0 (patch) | |
tree | 1dd51e535e839033d7b1c0ba6104fb1725aa3705 /sys/kern/sched_4bsd.c | |
parent | 75973f60359658f053d14347abf7b60eaf3e0122 (diff) | |
download | FreeBSD-src-7bac02c1465f16f80ca4f8673c20be951b6922a0.zip FreeBSD-src-7bac02c1465f16f80ca4f8673c20be951b6922a0.tar.gz |
Sprinkle some volatile magic and rearrange things a bit to avoid race
conditions in critical_exit now that it no longer blocks interrupts.
Reviewed by: jhb
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r-- | sys/kern/sched_4bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index fe90fee..f8a5c4f 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -911,7 +911,7 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) td->td_lastcpu = td->td_oncpu; td->td_flags &= ~TDF_NEEDRESCHED; - td->td_pflags &= ~TDP_OWEPREEMPT; + td->td_owepreempt = 0; td->td_oncpu = NOCPU; /* * At the last moment, if this thread is still marked RUNNING, |