Skip to content

Commit f7522cb

Browse files
galakcarlescufi
authored andcommitted
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 <[email protected]>
1 parent b0e916b commit f7522cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/kernel/spinlock/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <zephyr/kernel.h>
99
#include <zephyr/spinlock.h>
1010

11-
BUILD_ASSERT(CONFIG_MP_NUM_CPUS > 1);
11+
BUILD_ASSERT(CONFIG_MP_MAX_NUM_CPUS > 1);
1212

1313
#define CPU1_STACK_SIZE 1024
1414

tests/kernel/spinlock/src/spinlock_error_case.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <zephyr/ztest.h>
99
#include <zephyr/spinlock.h>
1010

11-
BUILD_ASSERT(CONFIG_MP_NUM_CPUS > 1);
11+
BUILD_ASSERT(CONFIG_MP_MAX_NUM_CPUS > 1);
1212

1313
static struct k_spinlock lock;
1414
static struct k_spinlock mylock;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tests:
22
kernel.multiprocessing.spinlock:
33
tags: kernel smp spinlock
4-
filter: CONFIG_SMP and CONFIG_MP_NUM_CPUS > 1 and CONFIG_MP_NUM_CPUS <= 4
4+
filter: CONFIG_SMP and CONFIG_MP_MAX_NUM_CPUS > 1 and CONFIG_MP_MAX_NUM_CPUS <= 4

0 commit comments

Comments
 (0)