summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kse.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-02-17 09:55:10 +0000
committerjulian <julian@FreeBSD.org>2003-02-17 09:55:10 +0000
commitaf55753a063a04a847a53c2946cd5fbf413a1e0f (patch)
tree775429b184310789a1eb3bc1be8451f6faf1abf4 /sys/kern/kern_kse.c
parent653bc68f5387baeae2f13b7f346d29659904e188 (diff)
downloadFreeBSD-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_kse.c')
-rw-r--r--sys/kern/kern_kse.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 02812d5..7ec5b57 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -652,8 +652,6 @@ kse_create(struct thread *td, struct kse_create_args *uap)
#endif
mtx_lock_spin(&sched_lock);
kse_link(newke, newkg);
- if (p->p_sflag & PS_NEEDSIGCHK)
- newke->ke_flags |= KEF_ASTPENDING;
/* Add engine */
kse_reassign(newke);
mtx_unlock_spin(&sched_lock);
@@ -1065,8 +1063,7 @@ thread_statclock(int user)
return (-1);
if (user) {
/* Current always do via ast() */
- td->td_kse->ke_flags |= KEF_ASTPENDING; /* XXX TDF_ASTPENDING */
- td->td_flags |= TDF_USTATCLOCK;
+ td->td_flags |= (TDF_USTATCLOCK|TDF_ASTPENDING);
td->td_uuticks++;
} else {
if (td->td_mailbox != NULL)
OpenPOWER on IntegriCloud