All of lore.kernel.org
 help / color / mirror / Atom feed
From: Athul Acharya <aacharya@gmail.com>
To: Bill Davidsen <davidsen@tmr.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Determining if the current processor is Hyperthreaded
Date: Tue, 2 Aug 2005 20:14:06 -0400	[thread overview]
Message-ID: <5a67a16f050802171478233f2f@mail.gmail.com> (raw)
In-Reply-To: <42EFB3BB.1060900@tmr.com>

On 8/2/05, Bill Davidsen <davidsen@tmr.com> 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

  reply	other threads:[~2005-08-03  0:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29 16:24 Determining if the current processor is Hyperthreaded Athul Acharya
2005-08-02 17:56 ` Bill Davidsen
2005-08-03  0:14   ` Athul Acharya [this message]
2005-08-05 13:45     ` Athul Acharya
2005-08-06 21:31       ` Athul Acharya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a67a16f050802171478233f2f@mail.gmail.com \
    --to=aacharya@gmail.com \
    --cc=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.