lkml.org 
[lkml]   [2001]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: Uniprocessor Compile error: 2.4.15-pre4 (-tr) in kernel.o (cpu_init()) - Works with SMP
    From
    Date
    On Tue, 2001-11-13 at 16:28, Benjamin LaHaise wrote:
    > This will fix the link error by moving cpucount into setup.c.

    Looks like the patch is reversed. Attached is a reversed version of the
    aforementioned reversed patch.

    --- linux-2.4.15-pre4/arch/i386/kernel/setup.c Mon Nov 12 17:39:00 2001
    +++ linux/arch/i386/kernel/setup.c Tue Nov 13 23:08:53 2001
    @@ -2806,6 +2807,7 @@
    };

    unsigned long cpu_initialized __initdata = 0;
    +int cpucount;

    /*
    * cpu_init() initializes state that is per-CPU. Some data is already
    --- linux-2.4.15-pre4/arch/i386/kernel/smpboot.c Mon Nov 12 17:39:00 2001
    +++ linux/arch/i386/kernel/smpboot.c Tue Nov 13 23:08:53 2001
    @@ -443,7 +443,7 @@
    synchronize_tsc_ap();
    }

    -int cpucount;
    +extern int cpucount;

    extern int cpu_idle(void);

    Robert Love
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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