rtems: Move scheduler directives to own header

Move all rtems_scheduler_* directives to the new header file
<rtems/rtems/scheduler.h>.  Add a Scheduler Manager API and
implementation group.
This commit is contained in:
Sebastian Huber committed 2021-12-02 14:09:51 +01:00
1 parent d7205f0083
commit 0d83bed2e5
17 files changed
+585 -501

No files matched your search

+1
View File
@@ -73,6 +73,7 @@
#include <rtems/rtems/part.h>
#include <rtems/rtems/ratemon.h>
#include <rtems/rtems/region.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/rtems/sem.h>
#include <rtems/rtems/signal.h>
#include <rtems/rtems/status.h>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+8
View File
@@ -111,6 +111,14 @@ RTEMS_INLINE_ROUTINE rtems_task_priority _RTEMS_Priority_From_core(
/**@}*/
/**
* @defgroup RTEMSImplClassicScheduler Scheduler Manager
*
* @ingroup RTEMSImplClassic
*
* @brief This group contains the Scheduler Manager implementation.
*/
#if defined(RTEMS_MULTIPROCESSING)
#include <rtems/rtems/taskmp.h>
#endif
+1
View File
@@ -20,6 +20,7 @@
#endif
#include <rtems/cpuuse.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/percpu.h>
#include <rtems/score/todimpl.h>
#include <rtems/score/schedulerimpl.h>
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_add_processor().
@@ -25,7 +25,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/assert.h>
#include <rtems/score/schedulerimpl.h>
#include <rtems/config.h>
+2 -2
View File
@@ -3,7 +3,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_get_maximum_priority().
@@ -38,7 +38,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_scheduler_get_maximum_priority(
+2 -2
View File
@@ -3,7 +3,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_get_processor() which may be used by binding for languages
@@ -39,7 +39,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
static uint32_t _RTEMS_Scheduler_get_processor( void )
{
+2 -2
View File
@@ -3,7 +3,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_get_processor_maximum() which may be used by binding for
@@ -39,7 +39,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
static uint32_t _RTEMS_Scheduler_get_processor_maximum( void )
{
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_get_processor_set().
@@ -25,7 +25,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_scheduler_get_processor_set(
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_ident().
@@ -25,7 +25,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_scheduler_ident(
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_ident_by_processor().
@@ -25,7 +25,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/assert.h>
#include <rtems/score/schedulerimpl.h>
@@ -1,7 +1,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_ident_by_processor_set().
@@ -25,7 +25,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/assert.h>
#include <rtems/score/schedulerimpl.h>
+2 -2
View File
@@ -3,7 +3,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_map_priority_from_posix().
@@ -38,7 +38,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_scheduler_map_priority_from_posix(
+2 -2
View File
@@ -3,7 +3,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_map_priority_to_posix().
@@ -38,7 +38,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/schedulerimpl.h>
rtems_status_code rtems_scheduler_map_priority_to_posix(
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* @file
*
* @ingroup RTEMSImplClassic
* @ingroup RTEMSImplClassicScheduler
*
* @brief This source file contains the implementation of
* rtems_scheduler_remove_processor().
@@ -25,7 +25,7 @@
#include "config.h"
#endif
#include <rtems/rtems/tasks.h>
#include <rtems/rtems/scheduler.h>
#include <rtems/score/schedulerimpl.h>
#include <rtems/config.h>
+1
View File
@@ -303,6 +303,7 @@ install:
- cpukit/include/rtems/rtems/region.h
- cpukit/include/rtems/rtems/regiondata.h
- cpukit/include/rtems/rtems/regionimpl.h
- cpukit/include/rtems/rtems/scheduler.h
- cpukit/include/rtems/rtems/sem.h
- cpukit/include/rtems/rtems/semdata.h
- cpukit/include/rtems/rtems/semimpl.h