lkml.org 
[lkml]   [2007]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [sched] redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array
    On 04/04/07, Ingo Molnar <mingo@elte.hu> wrote:
    >
    > * Dmitry Adamushko <dmitry.adamushko@gmail.com> wrote:
    > > [...]
    > >
    > > The same is applicable to rt_mutex_setprio().
    > >
    > > Of course, not a big deal, but it's easily avoidable, e.g. (delta < 0
    > > && array == rq->active).
    >
    > i think you are right and a micro-optimization could be done here. Would
    > you like to do a patch for this?

    Yes, I'll do it.

    in fact, "delta < 0 && array == rq->active" is also sub-optimal.

    "TASK_PREEMPTS_CURR(p, rq) && array == rq->active" seems to be ok.. or
    maybe even TASK_PREEMPTS_CURR() should internally check for "p->array
    == rq->active"...

    will come with some solution.

    Thanks.

    >
    > Ingo
    >

    --
    Best regards,
    Dmitry Adamushko
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-04-04 17:27    [W:0.048 / U:60.048 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site