Subject: Re: CVS commit: src/sys/kern
To: Mindaugas R. <rmind@NetBSD.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: source-changes
Date: 01/15/2008 18:21:58
There is an off-by-one error in sched_slept().
With that patched, my box seems to work.

best regards
Matthias


@@ -470,7 +457,7 @@ sched_slept(struct lwp *l)
         * If thread is in time-sharing queue and batch flag is not marked,
         * increase the the priority, and run with the lower time-quantum.
         */
-       if (l->l_priority <= PRI_HIGHEST_TS &&
+       if (l->l_priority < PRI_HIGHEST_TS &&
            (sil->sl_flags & SL_BATCH) == 0) {
                KASSERT(l->l_class == SCHED_OTHER);
                l->l_priority++;




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------