mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Björn Antonsson" <d93-ban@nada.kth.se>
To: linux-kernel@vger.kernel.org
Cc: d93-ban@nada.kth.se
Subject: How do you detect that hyperthreading is activated?
Date: Thu, 30 May 2002 17:29:40 +0200 (MEST)	[thread overview]
Message-ID: <200205301529.RAA09965@knatte.nada.kth.se> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 589 bytes --]

Hi,
I have an application that needs to check if a linux kernel has booted
with hyperthreading enabled on ia32, in order to do some special tweaks.
I know how you detect that a CPU supports hyperthreading, but how do you
detect that the kernel has booted with hyperthreading activated?

And by hyperthreading activated I mean that the current number of CPUs,
for example 8, are actually 4 physical CPUs and 4 logical CPUs.

Is there a way that I can get at the logical/physical CPU bits, as
reported by the CPUID instruction, of all available CPUs? Or is there
an even better way?

/Björn

             reply	other threads:[~2002-05-30 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-30 15:29 Björn Antonsson [this message]
2002-05-30 15:35 ` Dave Jones

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=200205301529.RAA09965@knatte.nada.kth.se \
    --to=d93-ban@nada.kth.se \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®