* [Linux-ia64] Proc num on an MP plateform
@ 2001-09-04 13:01 gerard
2001-09-04 14:09 ` Alex Williamson
2001-09-04 17:09 ` David Mosberger
0 siblings, 2 replies; 3+ messages in thread
From: gerard @ 2001-09-04 13:01 UTC (permalink / raw)
To: linux-ia64
Hi
I am working on a MP system and I need to know on which
proc num I am running, is there a macro/function call to do this?(kernel
mode).
Thanks in advance.
Gerard LYONNAZ
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] Proc num on an MP plateform
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
1 sibling, 0 replies; 3+ messages in thread
From: Alex Williamson @ 2001-09-04 14:09 UTC (permalink / raw)
To: linux-ia64
Gerard,
ia64_get_lid() returns the processor interrupt id and eid. That
should be enough to uniquely identify which CPU you're one.
Alex
gerard wrote:
>
> Hi
> I am working on a MP system and I need to know on which
> proc num I am running, is there a macro/function call to do this?(kernel
> mode).
>
> Thanks in advance.
> Gerard LYONNAZ
>
--
Alex Williamson Linux Development Lab
awilliam@fc.hp.com Hewlett Packard
970-898-9173 Fort Collins, CO
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] Proc num on an MP plateform
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
1 sibling, 0 replies; 3+ messages in thread
From: David Mosberger @ 2001-09-04 17:09 UTC (permalink / raw)
To: linux-ia64
>>>>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-04 17:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox