lkml.org 
[lkml]   [1998]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: smp_processor_id()?

> valid values are:
>
> smp_num_cpus: 0,1...NR_CPUS
> smp_processor_id(): 0,1,...smp_num_cpus [consecutive]

oops, wrong: smp_processor_id() is the physical APIC ID too. To access a
'logical' ID (in the 0..smp_num_cpus range), use:

cpu_number_map[smp_processor_id()]

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.921 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site