tests: kernel: spinlock: Convert CONFIG_MP_NUM_CPUS handling

Move build and build system checks to use CONFIG_MP_MAX_NUM_CPUS
as we phase out CONFIG_MP_NUM_CPUS.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2022-10-20 08:37:00 -05:00 committed by Carles Cufí
parent b0e916ba67
commit f7522cb71e
3 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
#include <zephyr/kernel.h>
#include <zephyr/spinlock.h>
BUILD_ASSERT(CONFIG_MP_NUM_CPUS > 1);
BUILD_ASSERT(CONFIG_MP_MAX_NUM_CPUS > 1);
#define CPU1_STACK_SIZE 1024

View file

@ -8,7 +8,7 @@
#include <zephyr/ztest.h>
#include <zephyr/spinlock.h>
BUILD_ASSERT(CONFIG_MP_NUM_CPUS > 1);
BUILD_ASSERT(CONFIG_MP_MAX_NUM_CPUS > 1);
static struct k_spinlock lock;
static struct k_spinlock mylock;

View file

@ -1,4 +1,4 @@
tests:
kernel.multiprocessing.spinlock:
tags: kernel smp spinlock
filter: CONFIG_SMP and CONFIG_MP_NUM_CPUS > 1 and CONFIG_MP_NUM_CPUS <= 4
filter: CONFIG_SMP and CONFIG_MP_MAX_NUM_CPUS > 1 and CONFIG_MP_MAX_NUM_CPUS <= 4