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:
parent
b0e916ba67
commit
f7522cb71e
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue