summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-04-03 22:48:32 +0800
committerGitHub <[email protected]>2019-04-03 22:48:32 +0800
commitb490052579e4229ae0c4c7ac0772fcc5d40195bc (patch)
treef344086e61af92aadfb9852098b8b27b03fb250f
parent6b9c2f7b29a350b556e4d3a05b74436ce99490f1 (diff)
parentc3ee1be7eee84fb0387d9b2eb2354349a22654e5 (diff)
Merge pull request #2539 from EvalZero/master
[components][drivers][workqueue] increase the default stack size of t…
-rwxr-xr-xcomponents/drivers/Kconfig16
-rw-r--r--components/drivers/src/workqueue.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig
index c883e6458b..792dc1b028 100755
--- a/components/drivers/Kconfig
+++ b/components/drivers/Kconfig
@@ -10,17 +10,17 @@ if RT_USING_DEVICE_IPC
default 512
config RT_USING_SYSTEM_WORKQUEUE
- bool "Using system default workqueue
- default n
+ bool "Using system default workqueue"
+ default n
if RT_USING_SYSTEM_WORKQUEUE
- config RT_SYSTEM_WORKQUEUE_STACKSIZE
- int "The stack size for system workqueue thread"
- default 512
+ config RT_SYSTEM_WORKQUEUE_STACKSIZE
+ int "The stack size for system workqueue thread"
+ default 2048
- config RT_SYSTEM_WORKQUEUE_PRIORITY
- int "The priority level of system workqueue thread"
- default "23
+ config RT_SYSTEM_WORKQUEUE_PRIORITY
+ int "The priority level of system workqueue thread"
+ default 23
endif
endif
diff --git a/components/drivers/src/workqueue.c b/components/drivers/src/workqueue.c
index f2b1ae81e4..d2e7dce329 100644
--- a/components/drivers/src/workqueue.c
+++ b/components/drivers/src/workqueue.c
@@ -394,7 +394,7 @@ rt_err_t rt_work_cancel(struct rt_work *work)
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);
return RT_EOK;