[lkml]   [2006]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectSMP BUG
    Folks the change introduced in 2.6.16-rc2   over 2.6.15
    wrt to the SMP initialization are wrong.
    Please apply to unroll the change..

    Here is the logic ...
    sched_init is called from start_kernel before the
    architecture specific function cpu_check_smp() is called
    which is done as part of rest_init().

    On s390 this actually sets the cpu_possible_map, which
    is now used in sched_init through the for_each_cpu without
    properly being initialized.
    As a result bringing 2nd and subsequent cpu online

    This should be a quick fix, until this chicken and egg
    problem is solved otherwise.

    -- Hubertus

    --- kernel/sched.c.orig 2006-02-13 19:08:28.000000000 -0500
    +++ kernel/sched.c 2006-02-13 19:09:08.000000000 -0500
    @@ -6111,7 +6111,7 @@ void __init sched_init(void)
    runqueue_t *rq;
    int i, j, k;

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

    rq = cpu_rq(i);
    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: 2006-02-14 01:21    [W:0.021 / U:5.264 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site