Skip to content

Commit

Permalink
Move a few files in sched/ that did not seem to have a home to sched/…
Browse files Browse the repository at this point in the history
…signal and sched/task
  • Loading branch information
gregory-nutt committed Aug 8, 2014
1 parent 23a334c commit 224ee05
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
14 changes: 1 addition & 13 deletions sched/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sched/signal/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion sched/nanosleep.c → sched/signal/sig_nanosleep.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* sched/nanosleep.c
* sched/signal/sig/nanosleep.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <[email protected]>
Expand Down
10 changes: 9 additions & 1 deletion sched/task/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion sched/atexit.c → sched/task/task_atexit.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -48,6 +48,7 @@
#include <nuttx/fs/fs.h>

#include "os_internal.h"
#include "task/task.h"

#ifdef CONFIG_SCHED_ATEXIT

Expand Down
3 changes: 2 additions & 1 deletion sched/getpid.c → sched/task/task_getpid.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -42,6 +42,7 @@
#include <sched.h>

#include "os_internal.h"
#include "task/task.h"

/************************************************************************
* Pre-processor Definitions
Expand Down
3 changes: 2 additions & 1 deletion sched/on_exit.c → sched/task/task_onexit.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -48,6 +48,7 @@
#include <nuttx/fs/fs.h>

#include "os_internal.h"
#include "task/task.h"

#ifdef CONFIG_SCHED_ONEXIT

Expand Down
3 changes: 2 additions & 1 deletion sched/prctl.c → sched/task/task_prctl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/************************************************************************
* sched/prctl.c
* sched/task/task_prctl.c
*
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <[email protected]>
Expand Down Expand Up @@ -48,6 +48,7 @@
#include <nuttx/sched.h>

#include "os_internal.h"
#include "task/task.h"

/************************************************************************
* Private Functions
Expand Down

0 comments on commit 224ee05

Please sign in to comment.