diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-11-25 12:42:50 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-11-25 12:42:50 +0000 |
commit | 215f4014e6fab077311cded4c7e493a8e809aeba (patch) | |
tree | dc12798eb9b172ee6d4f232985940966d6a272d1 /cpukit/score/include/rtems/score | |
parent | 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-215f4014e6fab077311cded4c7e493a8e809aeba.tar.bz2 |
2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/scheduler.h,
score/include/rtems/score/schedulerpriority.h: Whitespace removal.
Moved C++ extern directive.
Diffstat (limited to 'cpukit/score/include/rtems/score')
-rw-r--r-- | cpukit/score/include/rtems/score/scheduler.h | 60 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerpriority.h | 20 |
2 files changed, 40 insertions, 40 deletions
diff --git a/cpukit/score/include/rtems/score/scheduler.h b/cpukit/score/include/rtems/score/scheduler.h index b0ac20917c..5b9d8a9554 100644 --- a/cpukit/score/include/rtems/score/scheduler.h +++ b/cpukit/score/include/rtems/score/scheduler.h @@ -18,6 +18,15 @@ #ifndef _RTEMS_SCORE_SCHEDULER_H #define _RTEMS_SCORE_SCHEDULER_H +#include <rtems/score/percpu.h> +#include <rtems/score/chain.h> +#include <rtems/score/priority.h> +#include <rtems/score/prioritybitmap.h> + +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup ScoreScheduler Scheduler Handler * @@ -26,19 +35,10 @@ */ /**@{*/ -#ifdef __cplusplus -extern "C" { -#endif - -#include <rtems/score/percpu.h> -#include <rtems/score/chain.h> -#include <rtems/score/priority.h> -#include <rtems/score/prioritybitmap.h> - -/* - * These defines are used to set the scheduler_policy value. The values +/* + * These defines are used to set the scheduler_policy value. The values * must correspond directly with the order of the fields in the scheduler - * table (Scheduler_Table_t), because the Configuration.scheduler_policy + * table (Scheduler_Table_t), because the Configuration.scheduler_policy * field is used to index the scheduler table. */ #define _Scheduler_USER (0) @@ -47,8 +47,8 @@ extern "C" { typedef struct Scheduler_Control_struct Scheduler_Control; /* - * The Scheduler_Table_t type defines the scheduler initialization table, - * which is set up by confdefs.h based on the user's choice of scheduler + * The Scheduler_Table_t type defines the scheduler initialization table, + * which is set up by confdefs.h based on the user's choice of scheduler * policy. */ typedef struct { @@ -56,13 +56,13 @@ typedef struct { } Scheduler_Table_t; /* instantiated and initialized in confdefs.h */ -extern const Scheduler_Table_t _Scheduler_Table[]; +extern const Scheduler_Table_t _Scheduler_Table[]; /** - * The following Scheduler_Per_thread_xxx structures are used to - * hold per-thread data used by the scheduler. Thread_Control->scheduler is a + * The following Scheduler_Per_thread_xxx structures are used to + * hold per-thread data used by the scheduler. Thread_Control->scheduler is a * union of pointers, one for each of the following structures. The - * scheduler->xxx field points to an instantion of one of these structures, + * scheduler->xxx field points to an instantion of one of these structures, * which is allocated from the workspace during _Thread_Start. */ @@ -78,7 +78,7 @@ typedef struct { } Scheduler_priority_Per_thread; /** - * function jump table that holds pointers to the functions that + * function jump table that holds pointers to the functions that * implement specific schedulers. */ typedef struct { @@ -99,8 +99,8 @@ typedef struct { /** frees the scheduler field of the given thread */ void ( *scheduler_free ) ( Scheduler_Control *, Thread_Control * ); - - /** updates the scheduler field of the given thread -- primarily used + + /** updates the scheduler field of the given thread -- primarily used * when changing the thread's priority. */ void ( *scheduler_update ) ( Scheduler_Control *, Thread_Control * ); } Scheduler_Operations; @@ -109,15 +109,15 @@ typedef struct { * This is the structure used to manage the scheduler. */ struct Scheduler_Control_struct { - /** - * This union contains the pointer to the data structure used to manage - * the ready set of tasks. The pointer varies based upon the type of + /** + * This union contains the pointer to the data structure used to manage + * the ready set of tasks. The pointer varies based upon the type of * ready queue required by the scheduler. */ union { - /** - * This is the set of lists (an array of Chain_Control) for - * priority scheduling. + /** + * This is the set of lists (an array of Chain_Control) for + * priority scheduling. */ Chain_Control *Priority; @@ -136,7 +136,7 @@ struct Scheduler_Control_struct { SCORE_EXTERN Scheduler_Control _Scheduler; /** - * This routine initializes the scheduler to the policy chosen by the user + * This routine initializes the scheduler to the policy chosen by the user * through confdefs, or to the priority scheduler with ready chains by * default. */ @@ -146,11 +146,11 @@ void _Scheduler_Handler_initialization( void ); #include <rtems/score/scheduler.inl> #endif +/**@}*/ + #ifdef __cplusplus } #endif -/**@}*/ - #endif /* end of include file */ diff --git a/cpukit/score/include/rtems/score/schedulerpriority.h b/cpukit/score/include/rtems/score/schedulerpriority.h index 54c999f058..67ef6b9e93 100644 --- a/cpukit/score/include/rtems/score/schedulerpriority.h +++ b/cpukit/score/include/rtems/score/schedulerpriority.h @@ -18,22 +18,22 @@ #ifndef _RTEMS_SCORE_SCHEDULERPRIORITY_H #define _RTEMS_SCORE_SCHEDULERPRIORITY_H -/** - * @addtogroup ScoreScheduler - * - */ -/**@{*/ - -#ifdef __cplusplus -extern "C" { -#endif - #include <rtems/score/chain.h> #include <rtems/score/priority.h> #include <rtems/score/percpu.h> #include <rtems/score/scheduler.h> #include <rtems/score/wkspace.h> +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @addtogroup ScoreScheduler + * + */ +/**@{*/ + /** * This routine initializes the priority scheduler. */ |