diff options
author | jeff <jeff@FreeBSD.org> | 2003-04-12 22:33:24 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-04-12 22:33:24 +0000 |
commit | 7e8e873c9e074e49845568df16111276e1c154a7 (patch) | |
tree | 01424ae3cdb9c22535db38de3f9e12a8ebe23566 /sys | |
parent | 2e8ebbf548a4ccef4400eac22c3849fb134b46ec (diff) | |
download | FreeBSD-src-7e8e873c9e074e49845568df16111276e1c154a7.zip FreeBSD-src-7e8e873c9e074e49845568df16111276e1c154a7.tar.gz |
- 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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sched_ule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 599518e..d535ad6 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -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. |