In Linux you can use the kernel parameter maxcpus.
For instance in lilo I would add a line in the relevant image section of /etc/lilo.conf:
Code:
append = "maxcpus=8"
I suppose you can do something similar with Grub.
To know more, see the file Documentation/kernel-parameters.txt.
Or you can recompile your kernel to change the value of NR_CPUS but I guess that you would prefer to change the value at runtime.