This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f8b19c2030 drivers/video: Modify the properties of the goldfish camera 
driver kthread_create
f8b19c2030 is described below

commit f8b19c2030b682d0f12ee35aaa155fb97c6dfdbe
Author: yangsen5 <yangs...@xiaomi.com>
AuthorDate: Fri Sep 8 16:14:54 2023 +0800

    drivers/video: Modify the properties of the goldfish camera driver 
kthread_create
    
    1. priority   = SCHED_PRIORITY_DEFAULT
    2. stack_size = DEFAULT_TASK_STACKSIZE
    
    Signed-off-by: yangsen5 <yangs...@xiaomi.com>
---
 drivers/video/Kconfig           | 8 --------
 drivers/video/goldfish_camera.c | 4 ++--
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 3e1e38d181..9e97620ea9 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -360,14 +360,6 @@ config GOLDFISH_CAMERA_PIPE_PATH
        string "Goldfish camera pipe path"
        default "/dev/goldfish_pipe"
 
-config GOLDFISH_CAMERA_PRIORITY
-       int "Goldfish camera thread priority"
-       default 224
-
-config GOLDFISH_CAMERA_STACKSIZE
-       int "Goldfish camera stack size"
-       default DEFAULT_TASK_STACKSIZE
-
 endif
 
 source "drivers/video/vnc/Kconfig"
diff --git a/drivers/video/goldfish_camera.c b/drivers/video/goldfish_camera.c
index 044a18159a..3fe0dfb4c6 100644
--- a/drivers/video/goldfish_camera.c
+++ b/drivers/video/goldfish_camera.c
@@ -597,8 +597,8 @@ static int goldfish_camera_data_init(FAR struct imgdata_s 
*data)
   argv[1] = NULL;
 
   ret = kthread_create("goldfish_camera_thread",
-                        CONFIG_GOLDFISH_CAMERA_PRIORITY,
-                        CONFIG_GOLDFISH_CAMERA_STACKSIZE,
+                        SCHED_PRIORITY_DEFAULT,
+                        CONFIG_DEFAULT_TASK_STACKSIZE,
                         goldfish_camera_thread, argv);
   if (ret < 0)
     {

Reply via email to