summaryrefslogtreecommitdiff
path: root/nuttx/sched/task/task_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/task/task_create.c')
-rw-r--r--nuttx/sched/task/task_create.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/nuttx/sched/task/task_create.c b/nuttx/sched/task/task_create.c
index ca0ed892f..4e7d656f7 100644
--- a/nuttx/sched/task/task_create.c
+++ b/nuttx/sched/task/task_create.c
@@ -100,13 +100,8 @@
*
****************************************************************************/
-#ifndef CONFIG_CUSTOM_STACK
static int thread_create(FAR const char *name, uint8_t ttype, int priority,
int stack_size, main_t entry, FAR char * const argv[])
-#else
-static int thread_create(FAR const char *name, uint8_t ttype, int priority,
- main_t entry, FAR char * const argv[])
-#endif
{
FAR struct task_tcb_s *tcb;
pid_t pid;
@@ -147,14 +142,12 @@ static int thread_create(FAR const char *name, uint8_t ttype, int priority,
/* Allocate the stack for the TCB */
-#ifndef CONFIG_CUSTOM_STACK
ret = up_create_stack((FAR struct tcb_s *)tcb, stack_size, ttype);
if (ret < OK)
{
errcode = -ret;
goto errout_with_tcb;
}
-#endif
/* Initialize the task control block */
@@ -245,19 +238,10 @@ errout:
*
****************************************************************************/
-#ifndef CONFIG_CUSTOM_STACK
int task_create(FAR const char *name, int priority,
int stack_size, main_t entry, FAR char * const argv[])
-#else
-int task_create(FAR const char *name, int priority,
- main_t entry, FAR char * const argv[])
-#endif
{
-#ifndef CONFIG_CUSTOM_STACK
return thread_create(name, TCB_FLAG_TTYPE_TASK, priority, stack_size, entry, argv);
-#else
- return thread_create(name, TCB_FLAG_TTYPE_TASK, priority, entry, argv);
-#endif
}
/****************************************************************************
@@ -276,18 +260,9 @@ int task_create(FAR const char *name, int priority,
*
****************************************************************************/
-#ifndef CONFIG_CUSTOM_STACK
int kernel_thread(FAR const char *name, int priority,
int stack_size, main_t entry, FAR char * const argv[])
-#else
-int kernel_thread(FAR const char *name, int priority,
- main_t entry, FAR char * const argv[])
-#endif
{
-#ifndef CONFIG_CUSTOM_STACK
return thread_create(name, TCB_FLAG_TTYPE_KERNEL, priority, stack_size, entry, argv);
-#else
- return thread_create(name, TCB_FLAG_TTYPE_KERNEL, priority, entry, argv);
-#endif
}