diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-01 13:21:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-01 13:21:15 -0600 |
commit | 7bfdcaa22bd60cd34f11b0592c53fc5da1a37617 (patch) | |
tree | 77b4f3886eb3f4049545827c2008d161c318a9fa /nuttx/sched/task/task_create.c | |
parent | 9ee5cfaffa313949563fb37f7cd39a2b7620a4dd (diff) | |
download | px4-nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.tar.gz px4-nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.tar.bz2 px4-nuttx-7bfdcaa22bd60cd34f11b0592c53fc5da1a37617.zip |
Remove final traces of the 8015 from the NuttX source tree
Diffstat (limited to 'nuttx/sched/task/task_create.c')
-rw-r--r-- | nuttx/sched/task/task_create.c | 25 |
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 } |