mirror of
https://github.com/apache/nuttx.git
synced 2026-02-05 11:11:34 +08:00
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 <anchao.archer@bytedance.com>
This commit is contained in:
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@@ -22450,7 +22450,6 @@ sched/sched/sched_removeblocked.c alin.jerpelea@sony.com masayuki.ishikawa@gmail
|
||||
sched/sched/sched_removereadytorun.c hujun5@xiaomi.com jukka.laitinen@tii.ae masayuki.ishikawa@gmail.com alin.jerpelea@sony.com
|
||||
sched/sched/sched_reprioritize.c petro.karashchenko@gmail.com alin.jerpelea@sony.com
|
||||
sched/sched/sched_reprioritizertr.c zhangyuan21@xiaomi.com hujun5@xiaomi.com alin.jerpelea@sony.com anchao@lixiang.com
|
||||
sched/sched/sched_resumescheduler.c Masayuki.Ishikawa@jp.sony.com alin.jerpelea@sony.com liguiding1@xiaomi.com walker.zeng@transtekcorp.com
|
||||
sched/sched/sched_roundrobin.c hujun5@xiaomi.com gustavo.nihei@espressif.com jukka.laitinen@tii.ae zhangyuan21@xiaomi.com
|
||||
sched/sched/sched_rrgetinterval.c alin.jerpelea@sony.com yamamoto@midokura.com
|
||||
sched/sched/sched_self.c alin.jerpelea@sony.com
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
Reference in New Issue
Block a user