diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2007-09-24 00:28:54 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2007-09-24 00:28:54 +0000 |
| commit | e270652ba313c5212b749f9537ab0d01b2c6f17a (patch) | |
| tree | cadbd231a4fe6a8ffe7d0fca71d6f6304341c42f | |
| parent | bc60490a88fdad4ed4ebb800425223c3bf2129fb (diff) | |
Notes
| -rw-r--r-- | sys/kern/sched_ule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index df054733f41c..4dc8ea58b59e 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1410,7 +1410,7 @@ sched_priority(struct thread *td) * score. Negative nice values make it easier for a thread to be * considered interactive. */ - score = sched_interact_score(td) - td->td_proc->p_nice; + score = imax(0, sched_interact_score(td) - td->td_proc->p_nice); if (score < sched_interact) { pri = PRI_MIN_REALTIME; pri += ((PRI_MAX_REALTIME - PRI_MIN_REALTIME) / sched_interact) |
