lkml.org 
[lkml]   [2005]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject2.6.12 with dual way dual core ck804 MB
    Date
    andi,

    for the dual way dual core Opteron ck804 MB, the 2.6.12 still has the timing
    problem, I still need to add one printk in amd_detec_cmp after the
    phys_proc_id is setup.

    Regards

    YH

    static void __init amd_detect_cmp(struct cpuinfo_x86 *c)
    {
    #ifdef CONFIG_SMP
    int cpu = smp_processor_id();
    int node = 0;
    unsigned bits;
    if (c->x86_num_cores == 1)
    return;

    bits = 0;
    while ((1 << bits) < c->x86_num_cores)
    bits++;

    /* Low order bits define the core id (index of core in socket) */
    cpu_core_id[cpu] = phys_proc_id[cpu] & ((1 << bits)-1);
    /* Convert the APIC ID into the socket ID */
    phys_proc_id[cpu] >>= bits;
    + printk(KERN_INFO " CPU %d(%d) phys_proc_id %d Core %d\n",
    + cpu, c->x86_num_cores, phys_proc_id[cpu],
    cpu_core_id[cpu]);
    -
    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-06-22 00:43    [W:0.018 / U:121.220 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site