]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Allow static_boost to specify no boost with '0', traditional kernel
authorjeff <jeff@FreeBSD.org>
Fri, 4 Apr 2008 01:16:18 +0000 (01:16 +0000)
committerjeff <jeff@FreeBSD.org>
Fri, 4 Apr 2008 01:16:18 +0000 (01:16 +0000)
commit85d3ffe23c60821d6554b0426e8074b7c849762f
treeb6d8a1c3cbe25318d63006459d5a7b661d49c4e7
parentc50de590ccc1c12087279efa95ed99508409ad6c
 - Allow static_boost to specify no boost with '0', traditional kernel
   fixed pri boost with '1' or any priority less than the current thread's
   priority with a value greater than two.  Default the boost to
   PRI_MIN_TIMESHARE to prevent regular user-space threads from starving
   threads in the kernel.  This prevents these user-threads from also
   being scheduled as if they are high fixed-priority kernel threads.
 - Restore the setting of lowpri in tdq_choose().  It has to be either here
   or in sched_switch().  I accidentally removed it from both places.

Tested by: kris
sys/kern/sched_ule.c