diff options
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/schedulerdefaultstartidle.c | 3 | ||||
-rw-r--r-- | cpukit/score/src/threadchangepriority.c | 10 | ||||
-rw-r--r-- | cpukit/score/src/threadclearstate.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/threadready.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/threadsetpriority.c | 6 | ||||
-rw-r--r-- | cpukit/score/src/threadsetstate.c | 2 | ||||
-rw-r--r-- | cpukit/score/src/threadyield.c | 2 |
7 files changed, 10 insertions, 17 deletions
diff --git a/cpukit/score/src/schedulerdefaultstartidle.c b/cpukit/score/src/schedulerdefaultstartidle.c index eeed928160..2da7f8d753 100644 --- a/cpukit/score/src/schedulerdefaultstartidle.c +++ b/cpukit/score/src/schedulerdefaultstartidle.c @@ -18,6 +18,7 @@ void _Scheduler_default_Start_idle( Per_CPU_Control *cpu ) { + (void) scheduler; (void) cpu; - _Scheduler_Unblock( scheduler, the_thread ); + _Scheduler_Unblock( the_thread ); } diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index c2e48e1cf1..8ddaa0bdc7 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -81,17 +81,14 @@ void _Thread_Change_priority( * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) { - ISR_Level level; - const Scheduler_Control *scheduler; + ISR_Level level; _ISR_Disable( level ); - scheduler = _Scheduler_Get( the_thread ); the_thread->current_priority = new_priority; if ( _States_Is_ready( the_thread->current_state ) ) { _Scheduler_Change_priority( - scheduler, the_thread, new_priority, prepend_it @@ -103,10 +100,9 @@ void _Thread_Change_priority( * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ - scheduler = _Scheduler_Get( the_thread ); - _Scheduler_Schedule( scheduler, the_thread ); + _Scheduler_Schedule( the_thread ); } else { - _Scheduler_Update_priority( scheduler, the_thread, new_priority ); + _Scheduler_Update_priority( the_thread, new_priority ); } _ISR_Enable( level ); diff --git a/cpukit/score/src/threadclearstate.c b/cpukit/score/src/threadclearstate.c index 10bdae6829..19e41df593 100644 --- a/cpukit/score/src/threadclearstate.c +++ b/cpukit/score/src/threadclearstate.c @@ -37,7 +37,7 @@ void _Thread_Clear_state( the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { - _Scheduler_Unblock( _Scheduler_Get( the_thread ), the_thread ); + _Scheduler_Unblock( the_thread ); } } _ISR_Enable( level ); diff --git a/cpukit/score/src/threadready.c b/cpukit/score/src/threadready.c index d50debeff5..b79d8db84d 100644 --- a/cpukit/score/src/threadready.c +++ b/cpukit/score/src/threadready.c @@ -32,7 +32,7 @@ void _Thread_Ready( the_thread->current_state = STATES_READY; - _Scheduler_Unblock( _Scheduler_Get( the_thread ), the_thread ); + _Scheduler_Unblock( the_thread ); _ISR_Enable( level ); } diff --git a/cpukit/score/src/threadsetpriority.c b/cpukit/score/src/threadsetpriority.c index 455cf20af2..e1ff118c7e 100644 --- a/cpukit/score/src/threadsetpriority.c +++ b/cpukit/score/src/threadsetpriority.c @@ -28,9 +28,5 @@ void _Thread_Set_priority( { the_thread->current_priority = new_priority; - _Scheduler_Update_priority( - _Scheduler_Get( the_thread), - the_thread, - new_priority - ); + _Scheduler_Update_priority( the_thread, new_priority ); } diff --git a/cpukit/score/src/threadsetstate.c b/cpukit/score/src/threadsetstate.c index 97da2bf197..a8cd38efc7 100644 --- a/cpukit/score/src/threadsetstate.c +++ b/cpukit/score/src/threadsetstate.c @@ -39,7 +39,7 @@ void _Thread_Set_state( if ( _States_Is_ready( current_state ) ) { the_thread->current_state = state; - _Scheduler_Block( _Scheduler_Get( the_thread ), the_thread ); + _Scheduler_Block( the_thread ); } else { the_thread->current_state = _States_Set( state, current_state); } diff --git a/cpukit/score/src/threadyield.c b/cpukit/score/src/threadyield.c index b49e2b30ba..fc796dabea 100644 --- a/cpukit/score/src/threadyield.c +++ b/cpukit/score/src/threadyield.c @@ -34,7 +34,7 @@ void _Thread_Yield( Thread_Control *executing ) _ISR_Disable( level ); if ( _States_Is_ready( executing->current_state ) ) { - _Scheduler_Yield( _Scheduler_Get( executing ), executing ); + _Scheduler_Yield( executing ); } _ISR_Enable( level ); |