- Unbreak priority prop. for timeshare threads. Always place something on

the current queue if its priority is really elevated.  This needs more work
   as there are cases where a next queue kse could be holding up what would
   be a curr queue kse, and thus hurting interactivity.  Also, when a thread
   with an elevated priority has its priority lowered it should be placed
   back on the next queue.
This commit is contained in:
Jeff Roberson 2003-04-12 22:33:24 +00:00
parent 537d9274dc
commit a5f099d0c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113417

View file

@ -177,10 +177,8 @@ struct td_sched *thread0_sched = &td_sched;
*/
#define SCHED_INTERACTIVE(kg) \
(sched_interact_score(kg) < SCHED_INTERACT_THRESH)
#define SCHED_CURR(kg, ke) SCHED_INTERACTIVE(kg)
#if 0
#define SCHED_CURR(kg, ke) \
(ke->ke_thread->td_priority < PRI_MIN_TIMESHARE || SCHED_INTERACTIVE(kg))
#endif
/*
* Cpu percentage computation macros and defines.