This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 55e3cf7e2d sched: Move dump.c to sched_dumponexit.c
55e3cf7e2d is described below

commit 55e3cf7e2d9e12a1655a47f9b3fb1f74b3ef591e
Author: Xiang Xiao <[email protected]>
AuthorDate: Wed Apr 17 13:34:45 2024 +0800

    sched: Move dump.c to sched_dumponexit.c
    
    The dump.c is a part of sched module, so move it to sched directory.
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 sched/misc/CMakeLists.txt                       | 4 ----
 sched/misc/Make.defs                            | 4 ----
 sched/sched/CMakeLists.txt                      | 4 ++++
 sched/sched/Make.defs                           | 4 ++++
 sched/{misc/dump.c => sched/sched_dumponexit.c} | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/sched/misc/CMakeLists.txt b/sched/misc/CMakeLists.txt
index dc410e7121..efee973ed2 100644
--- a/sched/misc/CMakeLists.txt
+++ b/sched/misc/CMakeLists.txt
@@ -24,10 +24,6 @@ if(CONFIG_ARCH_DEADLOCKDUMP)
   list(APPEND SRCS deadlock.c)
 endif()
 
-if(CONFIG_DUMP_ON_EXIT)
-  list(APPEND SRCS dump.c)
-endif()
-
 if(CONFIG_BOARD_COREDUMP_SYSLOG OR CONFIG_BOARD_COREDUMP_BLKDEV)
   list(APPEND SRCS coredump.c)
 endif()
diff --git a/sched/misc/Make.defs b/sched/misc/Make.defs
index 08142fadf3..ca27b7405c 100644
--- a/sched/misc/Make.defs
+++ b/sched/misc/Make.defs
@@ -24,10 +24,6 @@ ifeq ($(CONFIG_ARCH_DEADLOCKDUMP),y)
 CSRCS += deadlock.c
 endif
 
-ifeq ($(CONFIG_DUMP_ON_EXIT),y)
-CSRCS += dump.c
-endif
-
 ifneq ($(CONFIG_BOARD_COREDUMP_SYSLOG)$(CONFIG_BOARD_COREDUMP_BLKDEV),)
 CSRCS += coredump.c
 endif
diff --git a/sched/sched/CMakeLists.txt b/sched/sched/CMakeLists.txt
index 29ac1b6346..998c82f0c3 100644
--- a/sched/sched/CMakeLists.txt
+++ b/sched/sched/CMakeLists.txt
@@ -120,6 +120,10 @@ if(CONFIG_SCHED_BACKTRACE)
   list(APPEND SRCS sched_backtrace.c)
 endif()
 
+if(CONFIG_DUMP_ON_EXIT)
+  list(APPEND SRCS sched_dumponexit.c)
+endif()
+
 if(CONFIG_SMP_CALL)
   list(APPEND SRCS sched_smp.c)
 endif()
diff --git a/sched/sched/Make.defs b/sched/sched/Make.defs
index 422f010738..2ff311780e 100644
--- a/sched/sched/Make.defs
+++ b/sched/sched/Make.defs
@@ -96,6 +96,10 @@ ifeq ($(CONFIG_SCHED_BACKTRACE),y)
 CSRCS += sched_backtrace.c
 endif
 
+ifeq ($(CONFIG_DUMP_ON_EXIT),y)
+CSRCS += sched_dumponexit.c
+endif
+
 ifeq ($(CONFIG_SMP_CALL),y)
 CSRCS += sched_smp.c
 endif
diff --git a/sched/misc/dump.c b/sched/sched/sched_dumponexit.c
similarity index 99%
rename from sched/misc/dump.c
rename to sched/sched/sched_dumponexit.c
index d8aebbd9f0..f1a07bd946 100644
--- a/sched/misc/dump.c
+++ b/sched/sched/sched_dumponexit.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * sched/misc/dump.c
+ * sched/sched/sched_dumponexit.c
  *
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with

Reply via email to