commit | 907eea07f23ba1a10544cdad868427b84d863116 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Thu Mar 16 17:54:25 2023 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Apr 03 12:36:30 2023 -0400 |
tree | 502d6067021ca01872d8f6de3f8ae90f13921307 | |
parent | cabc30c7251b255f179120e8957d457a2d35cd7f [diff] |
z_sched_init: don't use arch_num_cpus() The reason for arch_num_cpus() is to be able to dynamically adapt to the actual number of available CPUs at run time. In the z_sched_init() case, it is not the number of active CPUs that we need but rather the total number of potential CPUs, and that is represented by CONFIG_MP_MAX_NUM_CPUS not arch_num_cpus(). Signed-off-by: Nicolas Pitre <npitre@baylibre.com>