ztest: use kernel stack for cpuhold
These threads don't run in user mode, save some memory if userspace is not enabled. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
e93963b719
commit
9598a5fbff
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ static int cleanup_test(struct unit_test *test)
|
|||
#define CPUHOLD_STACK_SZ (512 + CONFIG_TEST_EXTRA_STACKSIZE)
|
||||
|
||||
static struct k_thread cpuhold_threads[NUM_CPUHOLD];
|
||||
K_THREAD_STACK_ARRAY_DEFINE(cpuhold_stacks, NUM_CPUHOLD, CPUHOLD_STACK_SZ);
|
||||
K_KERNEL_STACK_ARRAY_DEFINE(cpuhold_stacks, NUM_CPUHOLD, CPUHOLD_STACK_SZ);
|
||||
static struct k_sem cpuhold_sem;
|
||||
volatile int cpuhold_active;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue