mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 09:05:06 +08:00
score: Add and use _Scheduler_default_Schedule()
This commit is contained in:
@@ -201,6 +201,7 @@ libscore_a_SOURCES += src/schedulergetaffinity.c
|
||||
libscore_a_SOURCES += src/schedulersetaffinity.c
|
||||
libscore_a_SOURCES += src/schedulerdefaultallocatefree.c
|
||||
libscore_a_SOURCES += src/schedulerdefaultreleasejob.c
|
||||
libscore_a_SOURCES += src/schedulerdefaultschedule.c
|
||||
libscore_a_SOURCES += src/schedulerdefaultstartidle.c
|
||||
libscore_a_SOURCES += src/schedulerdefaulttick.c
|
||||
libscore_a_SOURCES += src/schedulerdefaultupdate.c
|
||||
|
||||
@@ -240,7 +240,18 @@ extern const Scheduler_Control _Scheduler_Table[];
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Returns an arbitrary non-NULL value.
|
||||
* @brief Does nothing.
|
||||
*
|
||||
* @param[in] scheduler Unused.
|
||||
* @param[in] the_thread Unused.
|
||||
*/
|
||||
void _Scheduler_default_Schedule(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *the_thread
|
||||
);
|
||||
|
||||
/**
|
||||
* @brief Returns true.
|
||||
*
|
||||
* @param[in] scheduler Unused.
|
||||
* @param[in] the_thread Unused.
|
||||
|
||||
@@ -50,7 +50,7 @@ extern "C" {
|
||||
#define SCHEDULER_PRIORITY_AFFINITY_SMP_ENTRY_POINTS \
|
||||
{ \
|
||||
_Scheduler_priority_SMP_Initialize, \
|
||||
_Scheduler_priority_SMP_Schedule, \
|
||||
_Scheduler_default_Schedule, \
|
||||
_Scheduler_priority_SMP_Yield, \
|
||||
_Scheduler_priority_SMP_Block, \
|
||||
_Scheduler_priority_SMP_Unblock, \
|
||||
|
||||
@@ -79,7 +79,7 @@ typedef struct {
|
||||
#define SCHEDULER_PRIORITY_SMP_ENTRY_POINTS \
|
||||
{ \
|
||||
_Scheduler_priority_SMP_Initialize, \
|
||||
_Scheduler_priority_SMP_Schedule, \
|
||||
_Scheduler_default_Schedule, \
|
||||
_Scheduler_priority_SMP_Yield, \
|
||||
_Scheduler_priority_SMP_Block, \
|
||||
_Scheduler_priority_SMP_Unblock, \
|
||||
@@ -102,11 +102,6 @@ bool _Scheduler_priority_SMP_Allocate(
|
||||
Thread_Control *thread
|
||||
);
|
||||
|
||||
void _Scheduler_priority_SMP_Schedule(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread
|
||||
);
|
||||
|
||||
void _Scheduler_priority_SMP_Block(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread
|
||||
|
||||
@@ -60,7 +60,7 @@ typedef struct {
|
||||
#define SCHEDULER_SIMPLE_SMP_ENTRY_POINTS \
|
||||
{ \
|
||||
_Scheduler_simple_SMP_Initialize, \
|
||||
_Scheduler_simple_SMP_Schedule, \
|
||||
_Scheduler_default_Schedule, \
|
||||
_Scheduler_simple_SMP_Yield, \
|
||||
_Scheduler_simple_SMP_Block, \
|
||||
_Scheduler_simple_SMP_Unblock, \
|
||||
@@ -105,11 +105,6 @@ void _Scheduler_simple_SMP_Yield(
|
||||
Thread_Control *thread
|
||||
);
|
||||
|
||||
void _Scheduler_simple_SMP_Schedule(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread
|
||||
);
|
||||
|
||||
void _Scheduler_simple_SMP_Start_idle(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread,
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2014 embedded brains GmbH
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/score/scheduler.h>
|
||||
|
||||
void _Scheduler_default_Schedule(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *the_thread
|
||||
)
|
||||
{
|
||||
(void) scheduler;
|
||||
(void) the_thread;
|
||||
}
|
||||
@@ -326,15 +326,6 @@ void _Scheduler_priority_SMP_Yield(
|
||||
_ISR_Enable( level );
|
||||
}
|
||||
|
||||
void _Scheduler_priority_SMP_Schedule(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread
|
||||
)
|
||||
{
|
||||
(void) scheduler;
|
||||
(void) thread;
|
||||
}
|
||||
|
||||
void _Scheduler_priority_SMP_Start_idle(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread,
|
||||
|
||||
@@ -262,15 +262,6 @@ void _Scheduler_simple_SMP_Yield(
|
||||
_ISR_Enable( level );
|
||||
}
|
||||
|
||||
void _Scheduler_simple_SMP_Schedule(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread
|
||||
)
|
||||
{
|
||||
(void) scheduler;
|
||||
(void) thread;
|
||||
}
|
||||
|
||||
void _Scheduler_simple_SMP_Start_idle(
|
||||
const Scheduler_Control *scheduler,
|
||||
Thread_Control *thread,
|
||||
|
||||
Reference in New Issue
Block a user