- 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:
parent
537d9274dc
commit
a5f099d0c4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user