For PLATFORM setmaxid, check if tunable hw.ncpu is set and valid (>= 1 and <= real ncores) and set mp_ncpus to it.
Details
Details
- Reviewers
andrew - Group Reviewers
ARM - Commits
- rS299383: When PLATFORM_SMP is enabled, check if tunable hw.ncpu is set and valid
Test on multicore PLATFORM-aware SMP board with different value of hw.ncpu set by ubldr.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
You should probably remove the (now redundant) hw.ncpu handling in arm/freescale/imx/imx6_mp.c and arm/altera/socfpga/socfpga_mp.c
Comment Actions
I have something similar in a larger patch that also looks at the DTB to see if it has any cpu nodes & used this to count the cpus.