Re: [PATCH 4/7] perf: Check if HT is supported and enabled

From: Peter Zijlstra
Date: Tue Jan 04 2011 - 08:44:39 EST


On Tue, 2011-01-04 at 14:38 +0100, Stephane Eranian wrote:
> My solution at the time (2.6.30) was to do:
> ht_enabled = cpumask_weight(__get_cpu_var(cpu_sibling_map)) > 1;

Won't that report a machine a HT disabled when you offline a sibling?
Which kinda defeats the purpose of our usage here, since we need to know
it before either sibling comes online.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/