net: use kernel stacks
These threads don't run in user mode, save some memory if userspace is enabled. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
5a137998bf
commit
c0d3ed0d1c
8 changed files with 20 additions and 20 deletions
|
@ -123,7 +123,7 @@ static sys_slist_t engine_obj_inst_list;
|
|||
static sys_slist_t engine_observer_list;
|
||||
static sys_slist_t engine_service_list;
|
||||
|
||||
static K_THREAD_STACK_DEFINE(engine_thread_stack,
|
||||
static K_KERNEL_STACK_DEFINE(engine_thread_stack,
|
||||
CONFIG_LWM2M_ENGINE_STACK_SIZE);
|
||||
static struct k_thread engine_thread_data;
|
||||
|
||||
|
@ -4525,7 +4525,7 @@ static int lwm2m_engine_init(struct device *dev)
|
|||
/* start sock receive thread */
|
||||
k_thread_create(&engine_thread_data,
|
||||
&engine_thread_stack[0],
|
||||
K_THREAD_STACK_SIZEOF(engine_thread_stack),
|
||||
K_KERNEL_STACK_SIZEOF(engine_thread_stack),
|
||||
(k_thread_entry_t) socket_receive_loop,
|
||||
NULL, NULL, NULL,
|
||||
/* Lowest priority cooperative thread */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue