Re: Determining if the current processor is Hyperthreaded

Athul Acharya
2005-08-06T21:32:01Z

On 8/5/05, Athul Acharya <aacharya@gmail.com> wrote:
> On 8/2/05, Athul Acharya <aacharya@gmail.com> wrote:
> > 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.
>
> Trying again, as it seems like a simple thing that really should exist
> -- is_cpu_hyperthreaded(smp_processor_id()) -- or something similar.
> Anyone?

Is anyone receiving this? I should've mentioned in subsequent mails
(I did in the original) that I'm not subscribed so any replies need to
be cc'd to me :)

Athul