Re: smp_processor_id()?

MOLNAR Ingo (mingo@chiara.csoma.elte.hu)
Sun, 6 Dec 1998 22:47:15 +0100 (CET)


> 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/