samples: do not use CONFIG_TEST_EXTRA_STACK_SIZE

samples should not use CONFIG_TEST_EXTRA_STACK_SIZE, instead, they
should set the recommended stack size directly.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-08-02 10:10:59 -04:00 committed by Carles Cufí
parent d60e3123cb
commit 31e0d86484
9 changed files with 9 additions and 10 deletions

View file

@ -17,8 +17,7 @@
#define DIGITS_NUM 240
#define LENGTH ((DIGITS_NUM / 4) * 14)
#define STACK_SIZE ((LENGTH * sizeof(int) + 512) + \
CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACK_SIZE ((LENGTH * sizeof(int) + 1024))
#ifdef CONFIG_SMP
#define CORES_NUM CONFIG_MP_NUM_CPUS

View file

@ -16,7 +16,7 @@ static int count;
K_MUTEX_DEFINE(count_mutex);
K_CONDVAR_DEFINE(count_threshold_cv);
#define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACK_SIZE (1024)
K_THREAD_STACK_ARRAY_DEFINE(tstacks, NUM_THREADS, STACK_SIZE);

View file

@ -9,7 +9,7 @@
#include <zephyr/sys/arch_interface.h>
#define NUM_THREADS 20
#define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACK_SIZE (1024)
K_THREAD_STACK_ARRAY_DEFINE(tstacks, NUM_THREADS, STACK_SIZE);

View file

@ -48,7 +48,7 @@ static const char *const names[] = {
|| defined(CONFIG_BOARD_NATIVE_POSIX_64BIT) \
|| defined(CONFIG_SOC_SERIES_BSIM_NRFXX))
#define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACK_SIZE (1024)
static pthread_attr_t attr[NUM_SOCKETPAIRS];
K_THREAD_STACK_ARRAY_DEFINE(stack, NUM_SOCKETPAIRS, STACK_SIZE);

View file

@ -83,7 +83,7 @@
/* end - control behaviour of the demo */
/***************************************/
#define STACK_SIZE (768 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACK_SIZE (2048)
#include "phil_obj_abstract.h"

View file

@ -9,7 +9,7 @@
#include <zephyr/ipc/ipc_service.h>
#define STACKSIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACKSIZE (1024)
#define PRIORITY K_PRIO_PREEMPT(2)
K_THREAD_STACK_DEFINE(ipc0A_stack, STACKSIZE);

View file

@ -9,7 +9,7 @@
#include <zephyr/ipc/ipc_service.h>
#define STACKSIZE (4096 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACKSIZE (4096)
#define PRIORITY K_PRIO_PREEMPT(2)
K_THREAD_STACK_DEFINE(ipc0A_stack, STACKSIZE);

View file

@ -30,7 +30,7 @@ static struct k_mem_partition *app_parts[] = {
#endif /* CONFIG_USERSPACE */
/* size of stack area used by each thread */
#define STACKSIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACKSIZE (1024)
extern void sample_module_func(void);

View file

@ -19,7 +19,7 @@
/* size of stack area used by each thread */
#define STACKSIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)
#define STACKSIZE (2048)
/* scheduling priority used by each thread */
#define PRIORITY 7