>>> On Sun, Dec 9, 2007 at  9:53 PM, in message
<[EMAIL PROTECTED]>, Gregory Haskins
<[EMAIL PROTECTED]> wrote: 

> +              * I have no doubt that this is the proper thing to do to make
> +              * sure RT tasks are properly balanced.  What I cannot wrap my
> +              * head around at this late hour is if issuing a reschedule()
> +              * here may cause issues in other circumstances.  TBD
> +              */
> +             if (!task_running(rq, p))
> +                     resched_task(rq->curr);
> +     }

It dawned on me after I sent this that a further optimization here is to 
predicate the reschedule on whether we are overloaded.  In otherwords:

if (!task_running(rq, p) && rt_overloaded(rq))

Regards,
-Greg

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to