[lkml]   [2003]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] 2.5.72 O(1) interactivity bugfix
    On Wed, 2003-06-18 at 07:43, Con Kolivas wrote:

    > While messing with the interactivity code I found what appears to be an
    > uninitialised variable (p->sleep_avg), which is responsible for all the
    > boost/penalty in the scheduler.

    The variable isn't uninitialized, it is inherited from the parent.

    Recall that the task_struct of the new child starts off as a duplicate
    of the parent's. If the variables are not explicitly set, they remain
    the same as the parent's.

    So this patch ends up resetting the sleep_avg to zero, instead of being
    the same as the parent, which may or may not result in better

    Robert Love

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

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