--- src/sys/kern/kern_switch.c.orig Wed Jan 26 14:36:02 2005 +++ src/sys/kern/kern_switch.c Wed Jan 26 14:39:05 2005 @@ -285,6 +285,12 @@ ke = td->td_kse; CTR1(KTR_RUNQ, "adjustrunqueue: td%p", td); + + /* + * Do not adjust the priority of an idle thread. + */ + if (td->td_flags & TDF_IDLETD) + return; /* * If it is not a threaded process, take the shortcut. */