diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-03 15:03:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-04 11:01:18 +0200 |
commit | 24934e36e2513f972510d7c746103be1f766dc6a (patch) | |
tree | 66e3c8840cec6c1262f142e25ec545926140dbf9 /cpukit/score/include/rtems/score/scheduleredf.h | |
parent | score: Add and use Scheduler_simple_Control (diff) | |
download | rtems-24934e36e2513f972510d7c746103be1f766dc6a.tar.bz2 |
score: Add scheduler control to scheduler ops
Scheduler operations must be free of a global scheduler context to
enable partitioned/clustered scheduling.
Diffstat (limited to 'cpukit/score/include/rtems/score/scheduleredf.h')
-rw-r--r-- | cpukit/score/include/rtems/score/scheduleredf.h | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/cpukit/score/include/rtems/score/scheduleredf.h b/cpukit/score/include/rtems/score/scheduleredf.h index 2d5f537c59..16d46a4928 100644 --- a/cpukit/score/include/rtems/score/scheduleredf.h +++ b/cpukit/score/include/rtems/score/scheduleredf.h @@ -121,6 +121,7 @@ void _Scheduler_EDF_Initialize( void ); * @param[in] the_thread is the thread to be blocked. */ void _Scheduler_EDF_Block( + Scheduler_Control *scheduler, Thread_Control *the_thread ); @@ -131,7 +132,10 @@ void _Scheduler_EDF_Block( * This kernel routine sets the heir thread to be the next ready thread * in the rbtree ready queue. */ -void _Scheduler_EDF_Schedule( Thread_Control *thread ); +void _Scheduler_EDF_Schedule( + Scheduler_Control *scheduler, + Thread_Control *the_thread +); /** * @brief Allocates EDF specific information of @a the_thread. @@ -142,7 +146,8 @@ void _Scheduler_EDF_Schedule( Thread_Control *thread ); * management memory for. */ void *_Scheduler_EDF_Allocate( - Thread_Control *the_thread + Scheduler_Control *scheduler, + Thread_Control *the_thread ); /** @@ -154,7 +159,8 @@ void *_Scheduler_EDF_Allocate( * will be deallocated. */ void _Scheduler_EDF_Free( - Thread_Control *the_thread + Scheduler_Control *scheduler, + Thread_Control *the_thread ); /** @@ -166,7 +172,8 @@ void _Scheduler_EDF_Free( * structure updated. */ void _Scheduler_EDF_Update( - Thread_Control *the_thread + Scheduler_Control *scheduler, + Thread_Control *the_thread ); /** @@ -179,6 +186,7 @@ void _Scheduler_EDF_Update( * @param[in] the_thread will be unblocked. */ void _Scheduler_EDF_Unblock( + Scheduler_Control *scheduler, Thread_Control *the_thread ); @@ -197,7 +205,10 @@ void _Scheduler_EDF_Unblock( * * @param[in,out] thread The yielding thread. */ -void _Scheduler_EDF_Yield( Thread_Control *thread ); +void _Scheduler_EDF_Yield( + Scheduler_Control *scheduler, + Thread_Control *the_thread +); /** * @brief Put @a the_thread to the rbtree ready queue. @@ -207,6 +218,7 @@ void _Scheduler_EDF_Yield( Thread_Control *thread ); * @param[in] the_thread will be enqueued to the ready queue. */ void _Scheduler_EDF_Enqueue( + Scheduler_Control *scheduler, Thread_Control *the_thread ); @@ -219,6 +231,7 @@ void _Scheduler_EDF_Enqueue( * @param[in] the_thread will be enqueued to the ready queue. */ void _Scheduler_EDF_Enqueue_first( + Scheduler_Control *scheduler, Thread_Control *the_thread ); @@ -232,7 +245,8 @@ void _Scheduler_EDF_Enqueue_first( * @param[in] the_thread will be extracted from the ready set. */ void _Scheduler_EDF_Extract( - Thread_Control *the_thread + Scheduler_Control *scheduler, + Thread_Control *the_thread ); /** @@ -261,8 +275,9 @@ int _Scheduler_EDF_Priority_compare ( * has to be suspended. */ void _Scheduler_EDF_Release_job ( - Thread_Control *the_thread, - uint32_t deadline + Scheduler_Control *scheduler, + Thread_Control *the_thread, + uint32_t deadline ); #ifdef __cplusplus |