ソースを参照

Merge pull request #2539 from EvalZero/master

[components][drivers][workqueue] increase the default stack size of t…
Bernard Xiong 6 年 前
コミット
b490052579
2 ファイル変更9 行追加9 行削除
  1. 8 8
      components/drivers/Kconfig
  2. 1 1
      components/drivers/src/workqueue.c

+ 8 - 8
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
 

+ 1 - 1
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;