4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 15:33:32 +08:00

Merge pull request #2539 from EvalZero/master

[components][drivers][workqueue] increase the default stack size of t…
This commit is contained in:
Bernard Xiong 2019-04-03 22:48:32 +08:00 committed by GitHub
commit b490052579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -10,17 +10,17 @@ if RT_USING_DEVICE_IPC
default 512 default 512
config RT_USING_SYSTEM_WORKQUEUE config RT_USING_SYSTEM_WORKQUEUE
bool "Using system default workqueue bool "Using system default workqueue"
default n default n
if RT_USING_SYSTEM_WORKQUEUE if RT_USING_SYSTEM_WORKQUEUE
config RT_SYSTEM_WORKQUEUE_STACKSIZE config RT_SYSTEM_WORKQUEUE_STACKSIZE
int "The stack size for system workqueue thread" int "The stack size for system workqueue thread"
default 512 default 2048
config RT_SYSTEM_WORKQUEUE_PRIORITY config RT_SYSTEM_WORKQUEUE_PRIORITY
int "The priority level of system workqueue thread" int "The priority level of system workqueue thread"
default "23 default 23
endif endif
endif endif

View File

@ -394,7 +394,7 @@ rt_err_t rt_work_cancel(struct rt_work *work)
static int rt_work_sys_workqueue_init(void) static int rt_work_sys_workqueue_init(void)
{ {
sys_workq = rt_workqueue_create("sys_work", RT_SYSTEM_WORKQUEUE_STACKSIZE * 4, sys_workq = rt_workqueue_create("sys_work", RT_SYSTEM_WORKQUEUE_STACKSIZE,
RT_SYSTEM_WORKQUEUE_PRIORITY); RT_SYSTEM_WORKQUEUE_PRIORITY);
return RT_EOK; return RT_EOK;