Re: Determining if the current processor is Hyperthreaded

From: Bill Davidsen
Date: Tue Aug 02 2005 - 12:53:07 EST


Athul Acharya wrote:
Hey folks,

Is there a quick way to determine if the current processor is
Hyperthreaded, and if so, which logical processor represents the other
thread on the chip? Please cc replies to me as I am not subscribed to
the list :-)

Look at /proc/cpuinfo and see if "siblings" is listed and more than one. There is no "other thread" there, it's like "which one is the other hand?"
--
-bill davidsen (davidsen@xxxxxxx)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
-
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/