Peter Geerds wrote:
[...] Schaue dir doch einmal das in deinen kernel-sourcen an:
Documentation/DocBook/kernel-hacking.tmpl
"smp_processor_id() returns the current processor number, between 0 and (the maximum number of CPUs supported by Linux, currently 32)."
Ich schrieb ja, der Kernel Source sagt etwas anderes. Du kannst das auch einfach in include/linux/threads.h innerhalb des Kernel-Source Tree nachschauen: $> cd /usr/src/linux $> cat include/linux/threads.h [...] /* * Maximum supported processors that can run under SMP. This value is * set via configure setting. The maximum is equal to the size of the * bitmasks used on that platform, i.e. 32 or 64. Setting this smaller * saves quite a bit of memory. */ [...] $> Der Auszug oben ist uebrigens vom 2.6.12er Kernel. Cheers, Th.