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

From: Valdis . Kletnieks
Date: Tue Jan 04 2011 - 13:57:25 EST


On Tue, 04 Jan 2011 12:10:19 +0100, Peter Zijlstra said:

> X86_FEATURE_HT tells us the CPU supports telling us about HT,
> smp_num_siblings > 1 tells us the CPU is capable of HT.

A subtle but important distinction. Several laptops ago, I had a P4-M chip that
had FEATURE_HT, but num_siblings == 1. ISTR trying to boot an SMP kernel on it
and it dying gloriously trying to bring up the non-existent other sibling.

Attachment: pgp00000.pgp
Description: PGP signature