lkml.org 
[lkml]   [2002]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: The O(1) scheduler breaks UML
    Date
    From
    davidel@xmailserver.org said:
    > Yes, this should work :
    > if (likely(prev != next)) {
    > rq->nr_switches++;
    > rq->curr = next;
    > next->cpu = prev->cpu;
    > spin_unlock_irq(&rq->lock);
    > context_switch(prev, next);
    > } else
    > spin_unlock_irq(&rq->lock);
    > and there's no need for barrier() and rq reload in this way.

    Yup, UML works much better with that.

    Jeff

    -
    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: 2005-03-22 13:15    [W:0.032 / U:59.432 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site