[lkml]   [2002]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] How to get number of physical CPU in linux from user space?
    On Fri, Oct 25, 2002 at 03:09:09PM -0400, Robert Love wrote:
    > +#ifdef CONFIG_SMP
    > + seq_printf(m, "physical processor ID\t: %d\n", phys_proc_id[n]);
    > + seq_printf(m, "number of siblings\t: %d\n", smp_num_siblings);
    > +#endif

    Should this be wrapped in a if (cpu_has_ht(c)) { } ?
    Seems silly to be displaying HT information on non-HT CPUs.


    | Dave Jones.
    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: 2005-03-22 13:30    [W:0.018 / U:0.292 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site