commit | a1195ae39b287f204ba3bd9ef2056b53e2c3787f | [log] [tgz] |
---|---|---|
author | Kumar Gala <kumar.gala@intel.com> | Tue Oct 18 09:45:13 2022 -0500 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Oct 21 13:14:58 2022 +0200 |
tree | 0381e7aa6443c1d2c9cbe698ac7571a8f7d5ff1e | |
parent | 77dcf91f501c50d12c8f8f634fa7bf149ecf3c97 [diff] |
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>