[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NR_CPUS 's value



In kernel, NR_CPU is macro and represents the number of CPUs. Many arrays use it to define array's size . But the number of CPUs can be known only when smp machine boot, so when compling the kernel , NR_CPU has no value.
I am cofused by it .


Anybody's guides appreciated, Thanks!

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/