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 <yangsen5@xiaomi.com>
This commit is contained in:
parent
fb7c36978f
commit
f8b19c2030
@ -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"
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user