Re: Determining if the current processor is Hyperthreaded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/2/05, Bill Davidsen <[email protected]> wrote:
> 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?"


Sorry, I should've been more specific -- I mean within the kernel. 
That is, I want to know whether the current cpu I (kernel code) am
executing on is hyperthreaded, and if so, which logical cpu represents
the other thread on chip.

Athul
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux