lkml.org 
[lkml]   [2006]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH, resent] convert a for (i = 0 ; i < NR_CPUS ; i++) to for_each_cpu(i) in sched_init()
    Oops, sorry for the patch -p0, this one is resent with correct -p1 format

    This one was not triggered by yesterday patch : My test machine doesnt crash
    when dereferencing (runqueue_t *)0x3420, I wonder why ?

    [PATCH] converts a for (i = 0 ; i < NR_CPUS ; i++) to for_each_cpu(i) in
    sched_init().


    Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
    --- linux-2.6.16-rc1-mm3/kernel/sched.c 2006-01-25 10:28:15.000000000 +0100
    +++ linux-2.6.16-rc1-mm3-ed/kernel/sched.c 2006-01-25 10:28:32.000000000 +0100
    @@ -6258,7 +6258,7 @@
    runqueue_t *rq;
    int i, j, k;

    - for (i = 0; i < NR_CPUS; i++) {
    + for_each_cpu(i) {
    prio_array_t *array;

    rq = cpu_rq(i);
    \
     
     \ /
      Last update: 2006-01-25 09:44    [W:0.022 / U:1.220 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site