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:
parent
d60e3123cb
commit
31e0d86484
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue