RE: Hyperthreading

From: Alan Cox (
Date: Wed Aug 21 2002 - 18:45:34 EST

On Wed, 2002-08-21 at 23:56, Nakajima, Jun wrote:
> Since Pentium 4 and Xeon share the same core, you see the HT bit on Pentium
> 4 as well. The HT bit does not mean HT is enabled (you can enable/disable
> usually by the BIOS setup), but the number of the threads (i.e. logical
> CPUs) in a processor package must be 2 (via cpuid instruction) so that the
> OS can be sure that HT is enabled (see setup.c). The HT bit is just useful
> as a prerequisite for HT.

If you want to know the full HT capabilities of the processor you need
to read cpuid 1 and check ebx bits 16-23.

There has been some interesting speculation as to whether you can enable
HT by undocumented mtrrs on cpus that have "ht" but claim not to be
doing HT. Clearly the value returned is settable somewhere but I've seen
no proof yet than you can enable HT on non PIV Xeons this way.

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

This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:24 EST