smp: Move arrays to use CONFIG_MP_MAX_NUM_CPUS
Move to use CONFIG_MP_MAX_NUM_CPUS for array size declarations instead of CONFIG_MP_NUM_CPUS. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
parent
1c3b9c91c8
commit
c778eb2a56
25 changed files with 38 additions and 38 deletions
|
@ -45,10 +45,10 @@ struct k_thread z_main_thread;
|
|||
|
||||
#ifdef CONFIG_MULTITHREADING
|
||||
__pinned_bss
|
||||
struct k_thread z_idle_threads[CONFIG_MP_NUM_CPUS];
|
||||
struct k_thread z_idle_threads[CONFIG_MP_MAX_NUM_CPUS];
|
||||
|
||||
static K_KERNEL_PINNED_STACK_ARRAY_DEFINE(z_idle_stacks,
|
||||
CONFIG_MP_NUM_CPUS,
|
||||
CONFIG_MP_MAX_NUM_CPUS,
|
||||
CONFIG_IDLE_STACK_SIZE);
|
||||
#endif /* CONFIG_MULTITHREADING */
|
||||
|
||||
|
@ -84,7 +84,7 @@ extern const struct init_entry __init_SMP_start[];
|
|||
* switches to the init thread.
|
||||
*/
|
||||
K_KERNEL_PINNED_STACK_ARRAY_DEFINE(z_interrupt_stacks,
|
||||
CONFIG_MP_NUM_CPUS,
|
||||
CONFIG_MP_MAX_NUM_CPUS,
|
||||
CONFIG_ISR_STACK_SIZE);
|
||||
|
||||
extern void idle(void *unused1, void *unused2, void *unused3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue