diff options
author | John Birrell <jb@FreeBSD.org> | 2006-10-26 21:42:22 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 2006-10-26 21:42:22 +0000 |
commit | 8460a577a4b4ec185bd813188a5b188893b8c140 (patch) | |
tree | 2136d90e7e60f4ef25fe147499787d0e6a155b82 /sys/kern/kern_subr.c | |
parent | 50159fa2161d549dbe2cb3ff9db1cc3816d48c37 (diff) | |
download | src-8460a577a4b4ec185bd813188a5b188893b8c140.tar.gz src-8460a577a4b4ec185bd813188a5b188893b8c140.zip |
Make KSE a kernel option, turned on by default in all GENERIC
kernel configs except sun4v (which doesn't process signals properly
with KSE).
Reviewed by: davidxu@
Notes
Notes:
svn path=/head/; revision=163709
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r-- | sys/kern/kern_subr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index b7ae320c19e5..631dfa2748df 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -430,7 +430,11 @@ uio_yield(void) td = curthread; mtx_lock_spin(&sched_lock); DROP_GIANT(); +#ifdef KSE sched_prio(td, td->td_ksegrp->kg_user_pri); /* XXXKSE */ +#else + sched_prio(td, td->td_user_pri); +#endif mi_switch(SW_INVOL, NULL); mtx_unlock_spin(&sched_lock); PICKUP_GIANT(); |