Article 6NN7Y LXer: Linus Torvalds Demotes "FORCE_NR_CPUS" Embedded Linux Option To Avoid Confusion

LXer: Linus Torvalds Demotes "FORCE_NR_CPUS" Embedded Linux Option To Avoid Confusion

by
LXer
from LinuxQuestions.org on (#6NN7Y)
Published at LXer:

The Linux kernel "FORCE_NR_CPUS" Kconfig option has been around a few years to force the number of CPU cores the kernel expects in order to allow for better compiler optimizations. When building a kernel targeted for a specific device/platform with a given number of CPU cores, the compiler can optimize CPU mask routines and shrink the size of the resulting kernel image rather than having to accommodate up to a dynamic upper-limit for the number of CPU cores to be found at boot time. Linus Torvalds himself has turned to demoting this CONFIG_FORCE_NR_CPUS option further to avoid confusion.

Read More...
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments