From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Proc num on an MP plateform
Date: Tue, 04 Sep 2001 17:09:03 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805118@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805116@msgid-missing>
>>>>> On Tue, 04 Sep 2001 15:01:28 +0200, gerard <gerard@mylos.grenoble.hp.com> said:
Gerard> Hi I am working on a MP system and I need to know on which
Gerard> proc num I am running, is there a macro/function call to do
Gerard> this?(kernel mode).
Depends on what number you want. If you want the SAPIC id,
ia64_get_lid() is the way to go. If you just want a unique number,
you can use smp_processor_id(). If you want a number in the range
from 0..smp_num_cpus-1, you can use cpu_number_map(smp_processor_id()).
--david
prev parent reply other threads:[~2001-09-04 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-04 13:01 [Linux-ia64] Proc num on an MP plateform gerard
2001-09-04 14:09 ` Alex Williamson
2001-09-04 17:09 ` David Mosberger [this message]
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=marc-linux-ia64-105590698805118@msgid-missing \
--to=davidm@hpl.hp.com \
--cc=linux-ia64@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