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> |
||
|---|---|---|
| .. | ||
| include | ||
| paging | ||
| atomic_c.c | ||
| banner.c | ||
| CMakeLists.txt | ||
| compiler_stack_protect.c | ||
| condvar.c | ||
| device.c | ||
| errno.c | ||
| events.c | ||
| fatal.c | ||
| futex.c | ||
| idle.c | ||
| init.c | ||
| Kconfig | ||
| Kconfig.vm | ||
| kheap.c | ||
| mailbox.c | ||
| main_weak.c | ||
| mem_domain.c | ||
| mem_slab.c | ||
| mempool.c | ||
| mmu.c | ||
| msg_q.c | ||
| mutex.c | ||
| pipes.c | ||
| poll.c | ||
| queue.c | ||
| sched.c | ||
| sem.c | ||
| smp.c | ||
| stack.c | ||
| system_work_q.c | ||
| thread.c | ||
| timeout.c | ||
| timer.c | ||
| usage.c | ||
| userspace_handler.c | ||
| userspace.c | ||
| version.c | ||
| work.c | ||
| xip.c | ||