Move a few files in sched/ that did not seem to have a home to sched/signal and sched/task
This commit is contained in:
parent
23a334c066
commit
224ee05957
@ -50,14 +50,6 @@ SCHED_SRCS += sched_setscheduler.c sched_getscheduler.c
|
||||
SCHED_SRCS += sched_yield.c sched_rrgetinterval.c sched_foreach.c
|
||||
SCHED_SRCS += sched_lock.c sched_unlock.c sched_lockcount.c sched_self.c
|
||||
|
||||
ifeq ($(CONFIG_SCHED_ATEXIT),y)
|
||||
SCHED_SRCS += atexit.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SCHED_ONEXIT),y)
|
||||
SCHED_SRCS += on_exit.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PRIORITY_INHERITANCE),y)
|
||||
SCHED_SRCS += sched_reprioritize.c
|
||||
endif
|
||||
@ -79,10 +71,6 @@ else
|
||||
SCHED_SRCS += sched_processtimer.c
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_DISABLE_SIGNALS),y)
|
||||
SCHED_SRCS += nanosleep.c
|
||||
endif
|
||||
|
||||
include init/Make.defs
|
||||
include irq/Make.defs
|
||||
include paging/Make.defs
|
||||
@ -99,7 +87,7 @@ include timer/Make.defs
|
||||
include environ/Make.defs
|
||||
|
||||
# REVISIT
|
||||
TSK_SRCS += prctl.c exit.c getpid.c
|
||||
TSK_SRCS += exit.c
|
||||
|
||||
CSRCS = $(INIT_SRCS) $(IRQ_SRCS) $(PG_SRCS) $(GRP_SRCS) $(SCHED_SRCS)
|
||||
CSRCS += $(TSK_SRCS) $(ERRNO_SRCS) $(WDOG_SRCS) $(SEM_SRCS)
|
||||
|
@ -42,7 +42,7 @@ SIGNAL_SRCS += sig_findaction.c sig_allocatependingsigaction.c
|
||||
SIGNAL_SRCS += sig_releasependingsigaction.c sig_unmaskpendingsignal.c
|
||||
SIGNAL_SRCS += sig_removependingsignal.c sig_releasependingsignal.c sig_lowest.c
|
||||
SIGNAL_SRCS += sig_mqnotempty.c sig_cleanup.c sig_dispatch.c sig_deliver.c
|
||||
SIGNAL_SRCS += sig_pause.c
|
||||
SIGNAL_SRCS += sig_pause.c sig_nanosleep.c
|
||||
|
||||
# Include signal build support
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* sched/nanosleep.c
|
||||
* sched/signal/sig/nanosleep.c
|
||||
*
|
||||
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
@ -36,7 +36,7 @@
|
||||
TSK_SRCS = task_create.c task_init.c task_setup.c task_activate.c
|
||||
TSK_SRCS += task_start.c task_delete.c task_exit.c task_exithook.c
|
||||
TSK_SRCS += task_recover.c task_restart.c task_spawn.c task_spawnparms.c
|
||||
TSK_SRCS += task_terminate.c task_getgroup.c
|
||||
TSK_SRCS += task_terminate.c task_getgroup.c task_prctl.c task_getpid.c
|
||||
|
||||
ifeq ($(CONFIG_ARCH_HAVE_VFORK),y)
|
||||
ifeq ($(CONFIG_SCHED_WAITPID),y)
|
||||
@ -54,6 +54,14 @@ ifeq ($(CONFIG_SCHED_STARTHOOK),y)
|
||||
TSK_SRCS += task_starthook.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SCHED_ATEXIT),y)
|
||||
TSK_SRCS += task_atexit.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SCHED_ONEXIT),y)
|
||||
TSK_SRCS += task_onexit.c
|
||||
endif
|
||||
|
||||
# Include task build support
|
||||
|
||||
DEPPATH += --dep-path task
|
||||
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* sched/atexit.c
|
||||
* sched/task/task_atexit.c
|
||||
*
|
||||
* Copyright (C) 2007, 2009, 2011-2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -48,6 +48,7 @@
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "os_internal.h"
|
||||
#include "task/task.h"
|
||||
|
||||
#ifdef CONFIG_SCHED_ATEXIT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************
|
||||
* sched/getpid.c
|
||||
* sched/task/task_getpid.c
|
||||
*
|
||||
* Copyright (C) 2007, 2009, 2014 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -42,6 +42,7 @@
|
||||
#include <sched.h>
|
||||
|
||||
#include "os_internal.h"
|
||||
#include "task/task.h"
|
||||
|
||||
/************************************************************************
|
||||
* Pre-processor Definitions
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* sched/on_exit.c
|
||||
* sched/task/task_onexit.c
|
||||
*
|
||||
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -48,6 +48,7 @@
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "os_internal.h"
|
||||
#include "task/task.h"
|
||||
|
||||
#ifdef CONFIG_SCHED_ONEXIT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************
|
||||
* sched/prctl.c
|
||||
* sched/task/task_prctl.c
|
||||
*
|
||||
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -48,6 +48,7 @@
|
||||
#include <nuttx/sched.h>
|
||||
|
||||
#include "os_internal.h"
|
||||
#include "task/task.h"
|
||||
|
||||
/************************************************************************
|
||||
* Private Functions
|
Loading…
Reference in New Issue
Block a user