Messages in this thread | | | Date | Fri, 25 Oct 2002 20:13:56 +0100 | From | Dave Jones <> | Subject | Re: [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
-- | Dave Jones. http://www.codemonkey.org.uk - 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/
| |