summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-08 14:06:42 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-08 14:06:42 -0600
commitc105d2ecf990f6bf7d1c4daff7117f1368d7ba90 (patch)
tree11d850c9b7b4a328ecf4e791b428869b1c9c749f /nuttx/sched
parent226161570bd36895918cb8d80aec864b06ed5c09 (diff)
downloadpx4-nuttx-c105d2ecf990f6bf7d1c4daff7117f1368d7ba90.tar.gz
px4-nuttx-c105d2ecf990f6bf7d1c4daff7117f1368d7ba90.tar.bz2
px4-nuttx-c105d2ecf990f6bf7d1c4daff7117f1368d7ba90.zip
Move group logic from sched/ to sched/group
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/Makefile20
-rw-r--r--nuttx/sched/group/Make.defs54
-rw-r--r--nuttx/sched/group/group.h (renamed from nuttx/sched/group_internal.h)8
-rw-r--r--nuttx/sched/group/group_childstatus.c (renamed from nuttx/sched/group_childstatus.c)4
-rw-r--r--nuttx/sched/group/group_create.c (renamed from nuttx/sched/group_create.c)4
-rw-r--r--nuttx/sched/group/group_find.c (renamed from nuttx/sched/group_find.c)4
-rw-r--r--nuttx/sched/group/group_foreachchild.c (renamed from nuttx/sched/group_foreachchild.c)4
-rw-r--r--nuttx/sched/group/group_join.c (renamed from nuttx/sched/group_join.c)4
-rw-r--r--nuttx/sched/group/group_killchildren.c (renamed from nuttx/sched/group_killchildren.c)4
-rw-r--r--nuttx/sched/group/group_leave.c (renamed from nuttx/sched/group_leave.c)4
-rw-r--r--nuttx/sched/group/group_setupidlefiles.c (renamed from nuttx/sched/group_setupidlefiles.c)4
-rw-r--r--nuttx/sched/group/group_setupstreams.c (renamed from nuttx/sched/group_setupstreams.c)2
-rw-r--r--nuttx/sched/group/group_setuptaskfiles.c (renamed from nuttx/sched/group_setuptaskfiles.c)4
-rw-r--r--nuttx/sched/group/group_signal.c (renamed from nuttx/sched/group_signal.c)4
-rw-r--r--nuttx/sched/os_start.c2
-rw-r--r--nuttx/sched/pthread/pthread_completejoin.c2
-rw-r--r--nuttx/sched/pthread/pthread_create.c2
-rw-r--r--nuttx/sched/pthread/pthread_detach.c2
-rw-r--r--nuttx/sched/pthread/pthread_findjoininfo.c2
-rw-r--r--nuttx/sched/pthread/pthread_join.c2
-rw-r--r--nuttx/sched/sched_releasetcb.c2
-rw-r--r--nuttx/sched/sched_waitid.c2
-rw-r--r--nuttx/sched/sched_waitpid.c2
-rw-r--r--nuttx/sched/signal/sig_action.c2
-rw-r--r--nuttx/sched/signal/sig_dispatch.c2
-rw-r--r--nuttx/sched/task_create.c2
-rw-r--r--nuttx/sched/task_exithook.c2
-rw-r--r--nuttx/sched/task_getgroup.c2
-rw-r--r--nuttx/sched/task_init.c2
-rw-r--r--nuttx/sched/task_posixspawn.c2
-rw-r--r--nuttx/sched/task_reparent.c2
-rw-r--r--nuttx/sched/task_restart.c2
-rw-r--r--nuttx/sched/task_setup.c2
-rw-r--r--nuttx/sched/task_spawn.c2
-rw-r--r--nuttx/sched/task_vfork.c2
35 files changed, 103 insertions, 63 deletions
diff --git a/nuttx/sched/Makefile b/nuttx/sched/Makefile
index 339f117ab..0e07c5ba1 100644
--- a/nuttx/sched/Makefile
+++ b/nuttx/sched/Makefile
@@ -100,21 +100,6 @@ ifeq ($(CONFIG_SCHED_CPULOAD),y)
SCHED_SRCS += sched_cpuload.c
endif
-GRP_SRCS = group_create.c group_join.c group_leave.c group_find.c
-GRP_SRCS += group_setupstreams.c group_setupidlefiles.c group_setuptaskfiles.c
-GRP_SRCS += task_getgroup.c group_foreachchild.c group_killchildren.c
-
-ifeq ($(CONFIG_SCHED_HAVE_PARENT),y)
-GRP_SRCS += task_reparent.c
-ifeq ($(CONFIG_SCHED_CHILD_STATUS),y)
-GRP_SRCS += group_childstatus.c
-endif
-endif
-
-ifneq ($(CONFIG_DISABLE_SIGNALS),y)
-GRP_SRCS += group_signal.c
-endif
-
WDOG_SRCS = wd_initialize.c wd_create.c wd_start.c wd_cancel.c wd_delete.c
WDOG_SRCS += wd_gettime.c
@@ -143,16 +128,17 @@ endif
IRQ_SRCS = irq_initialize.c irq_attach.c irq_dispatch.c irq_unexpectedisr.c
+include group/Make.defs
include semaphore/Make.defs
include signal/Make.defs
include pthread/Make.defs
include mqueue/Make.defs
include environ/Make.defs
-CSRCS = $(MISC_SRCS) $(TSK_SRCS) $(GRP_SRCS) $(SCHED_SRCS) $(WDOG_SRCS)
+CSRCS = $(MISC_SRCS) $(TSK_SRCS) $(SCHED_SRCS) $(WDOG_SRCS)
CSRCS += $(TIME_SRCS) $(TIMER_SRCS) $(PGFILL_SRCS)
CSRCS += $(IRQ_SRCS) $(CLOCK_SRCS)
-CSRCS += $(SEM_SRCS) $(SIGNAL_SRCS) $(PTHREAD_SRCS) $(MQUEUE_SRCS) $(ENV_SRCS)
+CSRCS += $(GRP_SRCS) $(SEM_SRCS) $(SIGNAL_SRCS) $(PTHREAD_SRCS) $(MQUEUE_SRCS) $(ENV_SRCS)
COBJS = $(CSRCS:.c=$(OBJEXT))
diff --git a/nuttx/sched/group/Make.defs b/nuttx/sched/group/Make.defs
new file mode 100644
index 000000000..b389055cf
--- /dev/null
+++ b/nuttx/sched/group/Make.defs
@@ -0,0 +1,54 @@
+############################################################################
+# sched/group/Make.defs
+#
+# Copyright (C) 2014 Gregory Nutt. All rights reserved.
+# Author: Gregory Nutt <gnutt@nuttx.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# 3. Neither the name NuttX nor the names of its contributors may be
+# used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+############################################################################
+
+GRP_SRCS = group_create.c group_join.c group_leave.c group_find.c
+GRP_SRCS += group_setupstreams.c group_setupidlefiles.c group_setuptaskfiles.c
+GRP_SRCS += task_getgroup.c group_foreachchild.c group_killchildren.c
+
+ifeq ($(CONFIG_SCHED_HAVE_PARENT),y)
+GRP_SRCS += task_reparent.c
+ifeq ($(CONFIG_SCHED_CHILD_STATUS),y)
+GRP_SRCS += group_childstatus.c
+endif
+endif
+
+ifneq ($(CONFIG_DISABLE_SIGNALS),y)
+GRP_SRCS += group_signal.c
+endif
+
+# Include group build support
+
+DEPPATH += --dep-path group
+VPATH += :group
diff --git a/nuttx/sched/group_internal.h b/nuttx/sched/group/group.h
index 41a9c1017..96ebe231d 100644
--- a/nuttx/sched/group_internal.h
+++ b/nuttx/sched/group/group.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * sched/group_internal.h
+ * sched/group/group.h
*
* Copyright (C) 2007-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -33,8 +33,8 @@
*
****************************************************************************/
-#ifndef __SCHED_GROUP_INERNAL_H
-#define __SCHED_GROUP_INERNAL_H
+#ifndef __SCHED_GROUP_GROUP_H
+#define __SCHED_GROUP_GROUP_H
/****************************************************************************
* Included Files
@@ -135,4 +135,4 @@ int group_setupstreams(FAR struct task_tcb_s *tcb);
#endif
#endif
-#endif /* __SCHED_GROUP_INERNAL_H */
+#endif /* __SCHED_GROUP_GROUP_H */
diff --git a/nuttx/sched/group_childstatus.c b/nuttx/sched/group/group_childstatus.c
index 5a5ffe4ab..bac8dac9f 100644
--- a/nuttx/sched/group_childstatus.c
+++ b/nuttx/sched/group/group_childstatus.c
@@ -1,5 +1,5 @@
/*****************************************************************************
- * sched/group_childstatus.c
+ * sched/group/group_childstatus.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -44,7 +44,7 @@
#include <debug.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#if defined(CONFIG_SCHED_HAVE_PARENT) && defined(CONFIG_SCHED_CHILD_STATUS)
diff --git a/nuttx/sched/group_create.c b/nuttx/sched/group/group_create.c
index ef3b02f19..36850f73d 100644
--- a/nuttx/sched/group_create.c
+++ b/nuttx/sched/group/group_create.c
@@ -1,5 +1,5 @@
/*****************************************************************************
- * sched/group_create.c
+ * sched/group/group_create.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <nuttx/kmalloc.h>
-#include "group_internal.h"
+#include "group/group.h"
#include "environ/environ.h"
#ifdef HAVE_TASK_GROUP
diff --git a/nuttx/sched/group_find.c b/nuttx/sched/group/group_find.c
index 635aa9829..0e9287e8a 100644
--- a/nuttx/sched/group_find.c
+++ b/nuttx/sched/group/group_find.c
@@ -1,5 +1,5 @@
/*****************************************************************************
- * sched/group_find.c
+ * sched/group/group_find.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <nuttx/kmalloc.h>
-#include "group_internal.h"
+#include "group/group.h"
#include "environ/environ.h"
#ifdef HAVE_TASK_GROUP
diff --git a/nuttx/sched/group_foreachchild.c b/nuttx/sched/group/group_foreachchild.c
index bf7548e87..deaeea2cd 100644
--- a/nuttx/sched/group_foreachchild.c
+++ b/nuttx/sched/group/group_foreachchild.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * sched/group_foreachchild.c
+ * sched/group/group_foreachchild.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -41,7 +41,7 @@
#include <nuttx/sched.h>
-#include "group_internal.h"
+#include "group/group.h"
#ifdef HAVE_GROUP_MEMBERS
diff --git a/nuttx/sched/group_join.c b/nuttx/sched/group/group_join.c
index 7f8871fe1..e188a9ee3 100644
--- a/nuttx/sched/group_join.c
+++ b/nuttx/sched/group/group_join.c
@@ -1,5 +1,5 @@
/*****************************************************************************
- * sched/group_join.c
+ * sched/group/group_join.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <nuttx/kmalloc.h>
-#include "group_internal.h"
+#include "group/group.h"
#include "environ/environ.h"
#if defined(HAVE_TASK_GROUP) && !defined(CONFIG_DISABLE_PTHREAD)
diff --git a/nuttx/sched/group_killchildren.c b/nuttx/sched/group/group_killchildren.c
index a96ecd113..a320d50bc 100644
--- a/nuttx/sched/group_killchildren.c
+++ b/nuttx/sched/group/group_killchildren.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * sched/group_killchildren.c
+ * sched/group/group_killchildren.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -41,7 +41,7 @@
#include <sched.h>
-#include "group_internal.h"
+#include "group/group.h"
#if HAVE_GROUP_MEMBERS
diff --git a/nuttx/sched/group_leave.c b/nuttx/sched/group/group_leave.c
index 93ef5363d..ec25792e7 100644
--- a/nuttx/sched/group_leave.c
+++ b/nuttx/sched/group/group_leave.c
@@ -1,5 +1,5 @@
/*****************************************************************************
- * sched/group_leave.c
+ * sched/group/group_leave.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -52,7 +52,7 @@
#include "signal/signal.h"
#include "pthread/pthread.h"
#include "mqueue/mqueue.h"
-#include "group_internal.h"
+#include "group/group.h"
#ifdef HAVE_TASK_GROUP
diff --git a/nuttx/sched/group_setupidlefiles.c b/nuttx/sched/group/group_setupidlefiles.c
index 67001c1fb..f9261d060 100644
--- a/nuttx/sched/group_setupidlefiles.c
+++ b/nuttx/sched/group/group_setupidlefiles.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * sched/group_setupidlefiles.c
+ * sched/group/group_setupidlefiles.c
*
* Copyright (C) 2007-2010, 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -50,7 +50,7 @@
#include <nuttx/net/net.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0
diff --git a/nuttx/sched/group_setupstreams.c b/nuttx/sched/group/group_setupstreams.c
index 0f0bfd083..73eea6b1d 100644
--- a/nuttx/sched/group_setupstreams.c
+++ b/nuttx/sched/group/group_setupstreams.c
@@ -46,7 +46,7 @@
#include <nuttx/net/net.h>
#include <nuttx/lib.h>
-#include "group_internal.h"
+#include "group/group.h"
/* Make sure that there are file or socket descriptors in the system and
* that some number of streams have been configured.
diff --git a/nuttx/sched/group_setuptaskfiles.c b/nuttx/sched/group/group_setuptaskfiles.c
index 6809f9784..91b4bf218 100644
--- a/nuttx/sched/group_setuptaskfiles.c
+++ b/nuttx/sched/group/group_setuptaskfiles.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * sched/group_setuptaskfiles.c
+ * sched/group/group_setuptaskfiles.c
*
* Copyright (C) 2007-2008, 2010, 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <nuttx/net/net.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0
diff --git a/nuttx/sched/group_signal.c b/nuttx/sched/group/group_signal.c
index c158bc89e..b1fafdc57 100644
--- a/nuttx/sched/group_signal.c
+++ b/nuttx/sched/group/group_signal.c
@@ -1,5 +1,5 @@
/*****************************************************************************
- * sched/group_signal.c
+ * sched/group/group_signal.c
*
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -46,7 +46,7 @@
#include <debug.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "signal/signal.h"
#if defined(HAVE_TASK_GROUP) && !defined(CONFIG_DISABLE_SIGNALS)
diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c
index 56f38d667..618ddeb08 100644
--- a/nuttx/sched/os_start.c
+++ b/nuttx/sched/os_start.c
@@ -65,7 +65,7 @@
#include "timer_internal.h"
#include "irq_internal.h"
#ifdef HAVE_TASK_GROUP
-#include "group_internal.h"
+#include "group/group.h"
#endif
/****************************************************************************
diff --git a/nuttx/sched/pthread/pthread_completejoin.c b/nuttx/sched/pthread/pthread_completejoin.c
index cfe65176f..cb9f970de 100644
--- a/nuttx/sched/pthread/pthread_completejoin.c
+++ b/nuttx/sched/pthread/pthread_completejoin.c
@@ -46,7 +46,7 @@
#include <debug.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "pthread/pthread.h"
/************************************************************************
diff --git a/nuttx/sched/pthread/pthread_create.c b/nuttx/sched/pthread/pthread_create.c
index 1484ef634..c82ed08fa 100644
--- a/nuttx/sched/pthread/pthread_create.c
+++ b/nuttx/sched/pthread/pthread_create.c
@@ -53,7 +53,7 @@
#include <nuttx/arch.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "clock_internal.h"
#include "pthread/pthread.h"
diff --git a/nuttx/sched/pthread/pthread_detach.c b/nuttx/sched/pthread/pthread_detach.c
index 5b7f4a611..2f5a3be86 100644
--- a/nuttx/sched/pthread/pthread_detach.c
+++ b/nuttx/sched/pthread/pthread_detach.c
@@ -47,7 +47,7 @@
#include <debug.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "pthread/pthread.h"
/************************************************************************
diff --git a/nuttx/sched/pthread/pthread_findjoininfo.c b/nuttx/sched/pthread/pthread_findjoininfo.c
index 0f49becfe..f867bd03a 100644
--- a/nuttx/sched/pthread/pthread_findjoininfo.c
+++ b/nuttx/sched/pthread/pthread_findjoininfo.c
@@ -41,7 +41,7 @@
#include <sys/types.h>
-#include "group_internal.h"
+#include "group/group.h"
#include "pthread/pthread.h"
/************************************************************************
diff --git a/nuttx/sched/pthread/pthread_join.c b/nuttx/sched/pthread/pthread_join.c
index 3aeb133f3..a9b9d9e88 100644
--- a/nuttx/sched/pthread/pthread_join.c
+++ b/nuttx/sched/pthread/pthread_join.c
@@ -44,7 +44,7 @@
#include <debug.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "pthread/pthread.h"
/****************************************************************************
diff --git a/nuttx/sched/sched_releasetcb.c b/nuttx/sched/sched_releasetcb.c
index 96f9acff7..5226d92fd 100644
--- a/nuttx/sched/sched_releasetcb.c
+++ b/nuttx/sched/sched_releasetcb.c
@@ -45,7 +45,7 @@
#include <nuttx/arch.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "timer_internal.h"
/************************************************************************
diff --git a/nuttx/sched/sched_waitid.c b/nuttx/sched/sched_waitid.c
index 385dfa55a..7329ef946 100644
--- a/nuttx/sched/sched_waitid.c
+++ b/nuttx/sched/sched_waitid.c
@@ -46,7 +46,7 @@
#include <nuttx/sched.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#if defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)
diff --git a/nuttx/sched/sched_waitpid.c b/nuttx/sched/sched_waitpid.c
index fbed490c1..48f932878 100644
--- a/nuttx/sched/sched_waitpid.c
+++ b/nuttx/sched/sched_waitpid.c
@@ -47,7 +47,7 @@
#include <nuttx/sched.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#ifdef CONFIG_SCHED_WAITPID
diff --git a/nuttx/sched/signal/sig_action.c b/nuttx/sched/signal/sig_action.c
index 6f07226cf..055f5ec96 100644
--- a/nuttx/sched/signal/sig_action.c
+++ b/nuttx/sched/signal/sig_action.c
@@ -46,7 +46,7 @@
#include <errno.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "signal/signal.h"
/****************************************************************************
diff --git a/nuttx/sched/signal/sig_dispatch.c b/nuttx/sched/signal/sig_dispatch.c
index 3697e8ee5..e26922863 100644
--- a/nuttx/sched/signal/sig_dispatch.c
+++ b/nuttx/sched/signal/sig_dispatch.c
@@ -49,7 +49,7 @@
#include <nuttx/arch.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "semaphore/semaphore.h"
#include "signal/signal.h"
#include "mqueue/mqueue.h"
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c
index a64b4e21b..55fdf22a6 100644
--- a/nuttx/sched/task_create.c
+++ b/nuttx/sched/task_create.c
@@ -49,7 +49,7 @@
#include <nuttx/kthread.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
/****************************************************************************
* Definitions
diff --git a/nuttx/sched/task_exithook.c b/nuttx/sched/task_exithook.c
index 5074a9986..90056c264 100644
--- a/nuttx/sched/task_exithook.c
+++ b/nuttx/sched/task_exithook.c
@@ -49,7 +49,7 @@
#include <nuttx/fs/fs.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "signal/signal.h"
/****************************************************************************
diff --git a/nuttx/sched/task_getgroup.c b/nuttx/sched/task_getgroup.c
index d38977d40..9c7b4b954 100644
--- a/nuttx/sched/task_getgroup.c
+++ b/nuttx/sched/task_getgroup.c
@@ -42,7 +42,7 @@
#include <sched.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#ifdef HAVE_TASK_GROUP
diff --git a/nuttx/sched/task_init.c b/nuttx/sched/task_init.c
index 79189f6cc..112ac6801 100644
--- a/nuttx/sched/task_init.c
+++ b/nuttx/sched/task_init.c
@@ -47,7 +47,7 @@
#include <nuttx/arch.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
/****************************************************************************
* Definitions
diff --git a/nuttx/sched/task_posixspawn.c b/nuttx/sched/task_posixspawn.c
index bc6f8dccc..122a83a28 100644
--- a/nuttx/sched/task_posixspawn.c
+++ b/nuttx/sched/task_posixspawn.c
@@ -46,7 +46,7 @@
#include <nuttx/binfmt/binfmt.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "spawn_internal.h"
/****************************************************************************
diff --git a/nuttx/sched/task_reparent.c b/nuttx/sched/task_reparent.c
index 8bd1f9767..7f8c8de41 100644
--- a/nuttx/sched/task_reparent.c
+++ b/nuttx/sched/task_reparent.c
@@ -42,7 +42,7 @@
#include <errno.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#ifdef CONFIG_SCHED_HAVE_PARENT
diff --git a/nuttx/sched/task_restart.c b/nuttx/sched/task_restart.c
index 45346c6f1..1e552030a 100644
--- a/nuttx/sched/task_restart.c
+++ b/nuttx/sched/task_restart.c
@@ -46,7 +46,7 @@
#include <nuttx/arch.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "signal/signal.h"
/****************************************************************************
diff --git a/nuttx/sched/task_setup.c b/nuttx/sched/task_setup.c
index 28d5ecdd8..ddf1537bf 100644
--- a/nuttx/sched/task_setup.c
+++ b/nuttx/sched/task_setup.c
@@ -50,7 +50,7 @@
#include "os_internal.h"
#include "pthread/pthread.h"
-#include "group_internal.h"
+#include "group/group.h"
/****************************************************************************
* Definitions
diff --git a/nuttx/sched/task_spawn.c b/nuttx/sched/task_spawn.c
index e14bb271d..541c62b11 100644
--- a/nuttx/sched/task_spawn.c
+++ b/nuttx/sched/task_spawn.c
@@ -45,7 +45,7 @@
#include <debug.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
#include "spawn_internal.h"
/****************************************************************************
diff --git a/nuttx/sched/task_vfork.c b/nuttx/sched/task_vfork.c
index 09d71cd26..706ef864d 100644
--- a/nuttx/sched/task_vfork.c
+++ b/nuttx/sched/task_vfork.c
@@ -49,7 +49,7 @@
#include <nuttx/sched.h>
#include "os_internal.h"
-#include "group_internal.h"
+#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions