lkml.org 
[lkml]   [1998]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patch] idle_task was wasting a lot of CPU
    Date
      Rik van Riel <H.H.vanRiel@phys.uu.nl> writes:
    >
    > if (current == idle_task || p->counter >= current->counter ||
    > p->policy != SCHED_OTHER)
    >
    That doesn't work too well with SMP.

    > occurring situations placed first. An alternative is
    > to have the idle task mark itself with SCHED_YIELD so
    > the != SCHED_OTHER test will pass. Since the idle task
    > is never subjected to goodness() the SCHED_YIELD will
    > never be cleared and we can keep on using the trick...
    >
    Better.

    --
    Matthias Urlichs | noris network GmbH | smurf@noris.de | ICQ: 20193661

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:45    [W:0.019 / U:32.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site