lkml.org 
[lkml]   [1998]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectprev->has_cpu
    Does this patch make sense or I have slept too little this night ;-)?

    Index: kernel/sched.c
    ===================================================================
    RCS file: /var/cvs/linux/kernel/sched.c,v
    retrieving revision 1.1.1.1.16.15
    diff -u -r1.1.1.1.16.15 sched.c
    --- sched.c 1998/11/13 07:46:43 1.1.1.1.16.15
    +++ sched.c 1998/11/13 08:29:39
    @@ -602,16 +602,16 @@
    }
    }

    -#ifdef __SMP__
    - next->has_cpu = 1;
    - next->processor = this_cpu;
    -#endif
    -
    if (prev != next) {
    kstat.context_swtch++;
    get_mmu_context(next);
    switch_to(prev,next);
    }
    +
    +#ifdef __SMP__
    + prev->has_cpu = 1;
    + prev->processor = this_cpu;
    +#endif

    spin_unlock(&scheduler_lock);

    Andrea Arcangeli



    -
    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.020 / U:1.796 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site