[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRE: [patch] scheduler bugfix, SMP, 2.4.0-test7

    On 28-Aug-2000 Linus Torvalds wrote:
    > I think the right solution is to completely split up "schedule()" into two
    > different functions (which just share 99% of the code), and basically have
    > the idle thread call the _other_ schedule. The one that never does the
    > test at all.

    Just to clarify, you're suggesting having a schedule_and_btw_current_is_idle
    and calling this from cpu_idle(), right? In this case the two schedules
    would share quite a bit less than 99% of the code. Idle tasks don't have to
    deal with kernel lock, ->state, SCHED_YIELD and RT exhaustion, to name a few.
    Instead, they might deal with more productive things such as direct handoff
    of a process that just went through reschedule_idle and selected an idle cpu.

    Dimitris Michailidis
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:38    [W:0.025 / U:103.964 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site