diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-01-08 01:23:16 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-01-08 01:23:16 +0000 |
| commit | 5460753d55c15c20e1b8fb19895ba802cd4ba373 (patch) | |
| tree | c34d3114b7f3f8befe7b024b64358c323634cb2c /sys/amd64 | |
| parent | fa896b728071bc4b761859d3738cf1cdefced47a (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/amd64/identcpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 59ed809018704..040fb6fc7138a 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -604,6 +604,15 @@ printcpuinfo(void) "\037IA64" /* CPU can execute IA64 instructions */ "\040PBE" /* Pending Break Enable */ ); + + /* + * If this CPU supports hyperthreading then mention + * the number of logical CPU's it contains. + */ + if (cpu_feature & CPUID_HTT && + (cpuid_cpuinfo & CPUID_HTT_CORES) > 0x100) + printf("\n Hyperthreading: %d logical CPUs", + (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16); } if (strcmp(cpu_vendor, "AuthenticAMD") == 0 && nreg >= 0x80000001) |
