zephyr/arch/arc/core
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
..
mpu arch: arc: remove unused <soc.h> 2022-08-03 07:46:14 -04:00
offsets ARC: ARcv3: 64bit: manage accumulator reg properly 2022-08-19 12:09:37 +02:00
secureshield arch: arc: remove unused <soc.h> 2022-08-03 07:46:14 -04:00
arc_connect.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
arc_smp.c smp: Move for loops to use arch_num_cpus instead of CONFIG_MP_NUM_CPUS 2022-10-21 13:14:58 +02:00
cache.c cache: Fix cache API calling from userspace 2022-08-23 10:14:17 +02:00
CMakeLists.txt
cpu_idle.S asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
fast_irq.S ARC: fix SMP race in ASM ARC interrupt handling code 2022-07-20 09:26:24 -05:00
fatal.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
fault_s.S ARC: fix SMP race in ASM ARC interrupt handling code 2022-07-20 09:26:24 -05:00
fault.c ARC: add non-multithreading mode support 2022-08-26 21:38:56 -04:00
irq_manage.c smp: Move arrays to use CONFIG_MP_MAX_NUM_CPUS 2022-10-17 14:40:12 +09:00
irq_offload.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
isr_wrapper.S ARC: ARcv3: 64bit: manage accumulator reg properly 2022-08-19 12:09:37 +02:00
prep_c.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
regular_irq.S ARC: fix SMP race in ASM ARC interrupt handling code 2022-07-20 09:26:24 -05:00
reset.S smp: Convert #if to use CONFIG_MP_MAX_NUM_CPUS 2022-10-20 22:04:10 +09:00
switch.S asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
thread_entry_wrapper.S ARC: add non-multithreading mode support 2022-08-26 21:38:56 -04:00
thread.c smp: Move arrays to use CONFIG_MP_MAX_NUM_CPUS 2022-10-17 14:40:12 +09:00
timestamp.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
tls.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
userspace.S asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
vector_table.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
vector_table.ld arc: vector_table: Automatically place the IRQ vector table 2022-06-28 12:29:42 +02:00