From e460cd00fddc586908192fa8f46b7e5bfe6bd5ce Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Sep 2017 12:07:14 +0200 Subject: score: Rename to _Scheduler_Control Rename struct Scheduler_Control to _Scheduler_Control to allow its use in standard header files, e.g. . Update #3112. --- cpukit/score/include/rtems/score/coremutex.h | 4 ++-- cpukit/score/include/rtems/score/percpu.h | 2 +- cpukit/score/include/rtems/score/priority.h | 4 ++-- cpukit/score/include/rtems/score/scheduler.h | 4 ++-- cpukit/score/include/rtems/score/schedulernodeimpl.h | 10 +++++----- cpukit/score/include/rtems/score/thread.h | 4 ++-- cpukit/score/include/rtems/score/threadimpl.h | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index d2bf1c21f6..fd1f27c697 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -27,7 +27,7 @@ #include #include -struct Scheduler_Control; +struct _Scheduler_Control; #ifdef __cplusplus extern "C" { @@ -90,7 +90,7 @@ typedef struct { /** * @brief The scheduler instance for this priority ceiling mutex. */ - const struct Scheduler_Control *scheduler; + const struct _Scheduler_Control *scheduler; #endif } CORE_ceiling_mutex_Control; diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index 3b63c7c1e1..97cb2bea15 100644 --- a/cpukit/score/include/rtems/score/percpu.h +++ b/cpukit/score/include/rtems/score/percpu.h @@ -452,7 +452,7 @@ typedef struct Per_CPU_Control { * This pointer is NULL in case this processor is currently not used by a * scheduler instance. */ - const struct Scheduler_Control *control; + const struct _Scheduler_Control *control; /** * @brief The scheduler context of the scheduler owning this processor. diff --git a/cpukit/score/include/rtems/score/priority.h b/cpukit/score/include/rtems/score/priority.h index 595aa3ebcf..9cc6338288 100644 --- a/cpukit/score/include/rtems/score/priority.h +++ b/cpukit/score/include/rtems/score/priority.h @@ -22,7 +22,7 @@ #include #include -struct Scheduler_Control; +struct _Scheduler_Control; #ifdef __cplusplus extern "C" { @@ -140,7 +140,7 @@ struct Priority_Aggregation { /** * @brief The scheduler instance of this priority aggregation. */ - const struct Scheduler_Control *scheduler; + const struct _Scheduler_Control *scheduler; #endif /** diff --git a/cpukit/score/include/rtems/score/scheduler.h b/cpukit/score/include/rtems/score/scheduler.h index a2a72b037c..38f3e710e7 100644 --- a/cpukit/score/include/rtems/score/scheduler.h +++ b/cpukit/score/include/rtems/score/scheduler.h @@ -40,7 +40,7 @@ struct Per_CPU_Control; */ /**@{*/ -typedef struct Scheduler_Control Scheduler_Control; +typedef struct _Scheduler_Control Scheduler_Control; /** * @brief The scheduler operations. @@ -236,7 +236,7 @@ typedef struct Scheduler_Context { /** * @brief Scheduler control. */ -struct Scheduler_Control { +struct _Scheduler_Control { /** * @brief Reference to a statically allocated scheduler context. */ diff --git a/cpukit/score/include/rtems/score/schedulernodeimpl.h b/cpukit/score/include/rtems/score/schedulernodeimpl.h index 009ad8f1ad..9ac0334979 100644 --- a/cpukit/score/include/rtems/score/schedulernodeimpl.h +++ b/cpukit/score/include/rtems/score/schedulernodeimpl.h @@ -18,7 +18,7 @@ #include #include -struct Scheduler_Control; +struct _Scheduler_Control; #ifdef __cplusplus extern "C" { @@ -31,10 +31,10 @@ extern "C" { RTEMS_CONTAINER_OF( node, Scheduler_Node, Wait.Priority ) RTEMS_INLINE_ROUTINE void _Scheduler_Node_do_initialize( - const struct Scheduler_Control *scheduler, - Scheduler_Node *node, - Thread_Control *the_thread, - Priority_Control priority + const struct _Scheduler_Control *scheduler, + Scheduler_Node *node, + Thread_Control *the_thread, + Priority_Control priority ) { node->owner = the_thread; diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index ecab766fee..488e961007 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -44,7 +44,7 @@ struct _pthread_cleanup_context; struct Per_CPU_Control; -struct Scheduler_Control; +struct _Scheduler_Control; struct User_extensions_Iterator; @@ -261,7 +261,7 @@ typedef struct { /** * @brief The home scheduler control of this thread. */ - const struct Scheduler_Control *home; + const struct _Scheduler_Control *home; /** * @brief The processor assigned by the current scheduler. diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index b2263a1dc2..7fe06e7a83 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -165,7 +165,7 @@ void _Thread_Stack_Free( bool _Thread_Initialize( Thread_Information *information, Thread_Control *the_thread, - const struct Scheduler_Control *scheduler, + const struct _Scheduler_Control *scheduler, void *stack_area, size_t stack_size, bool is_fp, -- cgit v1.2.3