zephyr/arch/arc
Kumar Gala a1195ae39b smp: Move for loops to use arch_num_cpus instead of CONFIG_MP_NUM_CPUS
Change for loops of the form:

for (i = 0; i < CONFIG_MP_NUM_CPUS; i++)
   ...

to

unsigned int num_cpus = arch_num_cpus();
for (i = 0; i < num_cpus; i++)
   ...

We do the call outside of the for loop so that it only happens once,
rather than on every iteration.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2022-10-21 13:14:58 +02:00
..
arcmwdt arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
core smp: Move for loops to use arch_num_cpus instead of CONFIG_MP_NUM_CPUS 2022-10-21 13:14:58 +02:00
include ARC: add non-multithreading mode support 2022-08-26 21:38:56 -04:00
CMakeLists.txt arch: arc: Rename ARC64 output format to elf64-littlearc64 2022-08-29 16:57:18 +02:00
Kconfig ARC: add non-multithreading mode support 2022-08-26 21:38:56 -04:00