From: Dave Jones <davej@codemonkey.org.uk>
To: Robert Love <rml@tech9.net>
Cc: linux-kernel@vger.kernel.org, "Nakajima,
Jun" <jun.nakajima@intel.com>,
chrisl@vmware.com, "Martin J. Bligh" <mbligh@aracnet.com>
Subject: Re: [PATCH] How to get number of physical CPU in linux from user space?
Date: Fri, 25 Oct 2002 20:13:56 +0100 [thread overview]
Message-ID: <20021025191356.GA11189@suse.de> (raw)
In-Reply-To: <1035572950.1501.3429.camel@phantasy>
On Fri, Oct 25, 2002 at 03:09:09PM -0400, Robert Love wrote:
> +#ifdef CONFIG_SMP
> + seq_printf(m, "physical processor ID\t: %d\n", phys_proc_id[n]);
> + seq_printf(m, "number of siblings\t: %d\n", smp_num_siblings);
> +#endif
Should this be wrapped in a if (cpu_has_ht(c)) { } ?
Seems silly to be displaying HT information on non-HT CPUs.
Dave
--
| Dave Jones. http://www.codemonkey.org.uk
next prev parent reply other threads:[~2002-10-25 19:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 18:54 Nakajima, Jun
2002-10-25 19:09 ` [PATCH] " Robert Love
2002-10-25 19:13 ` Dave Jones [this message]
2002-01-16 19:35 ` Pavel Machek
2002-10-25 19:21 ` Robert Love
2002-10-25 20:03 ` chrisl
2002-10-25 21:13 ` Alan Cox
2002-10-25 19:12 ` chrisl
2002-10-25 19:48 [PATCH] " Nakajima, Jun
2002-10-25 20:38 Nakajima, Jun
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=20021025191356.GA11189@suse.de \
--to=davej@codemonkey.org.uk \
--cc=chrisl@vmware.com \
--cc=jun.nakajima@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@aracnet.com \
--cc=rml@tech9.net \
/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
Powered by JetHome