diff options
author | julian <julian@FreeBSD.org> | 2003-02-17 09:55:10 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-02-17 09:55:10 +0000 |
commit | af55753a063a04a847a53c2946cd5fbf413a1e0f (patch) | |
tree | 775429b184310789a1eb3bc1be8451f6faf1abf4 /sys/kern/kern_switch.c | |
parent | 653bc68f5387baeae2f13b7f346d29659904e188 (diff) | |
download | FreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.zip FreeBSD-src-af55753a063a04a847a53c2946cd5fbf413a1e0f.tar.gz |
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@
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 5cefb1c..ea4e5ba 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -220,6 +220,8 @@ kse_reassign(struct kse *ke) kg->kg_last_assigned = td; td->td_kse = ke; ke->ke_thread = td; + if (td->td_proc->p_sflag & PS_NEEDSIGCHK) + td->td_flags |= TDF_ASTPENDING; sched_add(ke); CTR2(KTR_RUNQ, "kse_reassign: ke%p -> td%p", ke, td); return; |