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

xiaoxiang 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 f3e2a7029d5 sched: Remove legacy sched_resumescheduler.c
f3e2a7029d5 is described below

commit f3e2a7029d5c0ff47980eaea9d00b50f4d3c7017
Author: chao an <[email protected]>
AuthorDate: Tue Jan 27 12:21:46 2026 +0800

    sched: Remove legacy sched_resumescheduler.c
    
    The sched_resumescheduler support was already removed in prior commits.
    This change cleans up the now unused legacy source file.
    
    Signed-off-by: chao an <[email protected]>
---
 .github/CODEOWNERS                                 |  1 -
 .../esp32s3/common/scripts/esp32s3_sections.ld     |  1 -
 .../esp32s3/common/scripts/legacy_sections.ld      |  1 -
 .../esp32s3/common/scripts/mcuboot_sections.ld     |  1 -
 sched/sched/sched_resumescheduler.c                | 81 ----------------------
 5 files changed, 85 deletions(-)

diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index a88a52cb58d..075021ea956 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -22450,7 +22450,6 @@ sched/sched/sched_removeblocked.c 
[email protected] masayuki.ishikawa@gmail
 sched/sched/sched_removereadytorun.c [email protected] [email protected] 
[email protected] [email protected]
 sched/sched/sched_reprioritize.c [email protected] 
[email protected]
 sched/sched/sched_reprioritizertr.c [email protected] [email protected] 
[email protected] [email protected]
-sched/sched/sched_resumescheduler.c [email protected] 
[email protected] [email protected] [email protected]
 sched/sched/sched_roundrobin.c [email protected] [email protected] 
[email protected] [email protected]
 sched/sched/sched_rrgetinterval.c [email protected] [email protected]
 sched/sched/sched_self.c [email protected]
diff --git a/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld 
b/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
index 5ecf431c2f5..8136c08f6ec 100644
--- a/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
+++ b/boards/xtensa/esp32s3/common/scripts/esp32s3_sections.ld
@@ -212,7 +212,6 @@ SECTIONS
     *libsched.a:sched_addreadytorun.*(.literal.nxsched_add_readytorun 
.text.nxsched_add_readytorun)
     *libsched.a:sched_addprioritized.*(.literal.nxsched_add_prioritized 
.text.nxsched_add_prioritized)
     *libsched.a:sched_mergepending.*(.literal.nxsched_merge_pending 
.text.nxsched_merge_pending)
-    *libsched.a:sched_resumescheduler.*(.literal.nxsched_resume_scheduler 
.text.nxsched_resume_scheduler)
 
     *libc.a:sq_remfirst.*(.literal.sq_remfirst .text.sq_remfirst)
 #endif
diff --git a/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld 
b/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld
index 5ed2b6532af..6665cd6461f 100644
--- a/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld
+++ b/boards/xtensa/esp32s3/common/scripts/legacy_sections.ld
@@ -128,7 +128,6 @@ SECTIONS
     *libsched.a:sched_addreadytorun.*(.literal.nxsched_add_readytorun 
.text.nxsched_add_readytorun)
     *libsched.a:sched_addprioritized.*(.literal.nxsched_add_prioritized 
.text.nxsched_add_prioritized)
     *libsched.a:sched_mergepending.*(.literal.nxsched_merge_pending 
.text.nxsched_merge_pending)
-    *libsched.a:sched_resumescheduler.*(.literal.nxsched_resume_scheduler 
.text.nxsched_resume_scheduler)
 
     *libc.a:sq_remfirst.*(.literal.sq_remfirst .text.sq_remfirst)
 #endif
diff --git a/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld 
b/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld
index 4924fdec5b7..a66814df183 100644
--- a/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld
+++ b/boards/xtensa/esp32s3/common/scripts/mcuboot_sections.ld
@@ -233,7 +233,6 @@ SECTIONS
     *libsched.a:sched_addreadytorun.*(.literal.nxsched_add_readytorun 
.text.nxsched_add_readytorun)
     *libsched.a:sched_addprioritized.*(.literal.nxsched_add_prioritized 
.text.nxsched_add_prioritized)
     *libsched.a:sched_mergepending.*(.literal.nxsched_merge_pending 
.text.nxsched_merge_pending)
-    *libsched.a:sched_resumescheduler.*(.literal.nxsched_resume_scheduler 
.text.nxsched_resume_scheduler)
 
     *libc.a:sq_remfirst.*(.literal.sq_remfirst .text.sq_remfirst)
 #endif
diff --git a/sched/sched/sched_resumescheduler.c 
b/sched/sched/sched_resumescheduler.c
deleted file mode 100644
index 71c57392447..00000000000
--- a/sched/sched/sched_resumescheduler.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
- * sched/sched/sched_resumescheduler.c
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.  The
- * ASF licenses this file to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the
- * License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
- * License for the specific language governing permissions and limitations
- * under the License.
- *
- ****************************************************************************/
-
-/****************************************************************************
- * Included Files
- ****************************************************************************/
-
-#include <nuttx/config.h>
-
-#include <assert.h>
-
-#include <nuttx/sched.h>
-#include <nuttx/clock.h>
-#include <nuttx/sched_note.h>
-
-#include "irq/irq.h"
-#include "sched/sched.h"
-
-#if defined(CONFIG_SCHED_RESUMESCHEDULER)
-
-/****************************************************************************
- * Public Functions
- ****************************************************************************/
-
-/****************************************************************************
- * Name: nxsched_resume_scheduler
- *
- * Description:
- *   Called by architecture specific implementations that block task
- *   execution.  This function prepares the scheduler for the thread that is
- *   about to be restarted.
- *
- * Input Parameters:
- *   tcb - The TCB of the thread to be restarted.
- *
- * Returned Value:
- *   None
- *
- ****************************************************************************/
-
-void nxsched_resume_scheduler(FAR struct tcb_s *tcb)
-{
-#ifdef CONFIG_SCHED_SPORADIC
-  if ((tcb->flags & TCB_FLAG_POLICY_MASK) == TCB_FLAG_SCHED_SPORADIC)
-    {
-      /* Reset the replenishment cycle if it is appropriate to do so */
-
-      DEBUGVERIFY(nxsched_resume_sporadic(tcb));
-    }
-#endif
-
-  /* Indicate the task has been resumed */
-
-#ifdef CONFIG_SCHED_CRITMONITOR
-  nxsched_resume_critmon(tcb);
-#endif
-#ifdef CONFIG_SCHED_INSTRUMENTATION
-  sched_note_resume(tcb);
-#endif
-}
-
-#endif /* CONFIG_SCHED_RESUMESCHEDULER */

Reply via email to