Index: head/sys/arm/arm/platform.c =================================================================== --- head/sys/arm/arm/platform.c +++ head/sys/arm/arm/platform.c @@ -209,8 +209,16 @@ void platform_mp_setmaxid(void) { + int ncpu; PLATFORM_MP_SETMAXID(plat_obj); + + if (TUNABLE_INT_FETCH("hw.ncpu", &ncpu)) { + if (ncpu >= 1 && ncpu <= mp_ncpus) { + mp_ncpus = ncpu; + mp_maxid = ncpu - 1; + } + } } void