NR_CPUS 's value

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

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux