diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-10 14:33:17 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:41 +0100 |
commit | e382a1bfccdecf1dcf01c452ee0edb5afa0660b3 (patch) | |
tree | 901e36ea6fcacc997210cb13d19fd997ed15251d /cpukit/score/include/rtems/score/schedulerimpl.h | |
parent | score: Pass scheduler node to yield operation (diff) | |
download | rtems-e382a1bfccdecf1dcf01c452ee0edb5afa0660b3.tar.bz2 |
score: Pass scheduler node to block operation
Changed for consistency with other scheduler operations.
Update #2556.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulerimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulerimpl.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerimpl.h b/cpukit/score/include/rtems/score/schedulerimpl.h index a431a3af08..e630cc2e53 100644 --- a/cpukit/score/include/rtems/score/schedulerimpl.h +++ b/cpukit/score/include/rtems/score/schedulerimpl.h @@ -330,7 +330,11 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Block( Thread_Control *the_thread ) scheduler = _Scheduler_Get( the_thread ); _Scheduler_Acquire_critical( scheduler, &lock_context ); - ( *scheduler->Operations.block )( scheduler, the_thread ); + ( *scheduler->Operations.block )( + scheduler, + the_thread, + _Thread_Scheduler_get_home_node( the_thread ) + ); _Scheduler_Release_critical( scheduler, &lock_context ); } @@ -708,16 +712,20 @@ bool _Scheduler_Set_affinity( RTEMS_INLINE_ROUTINE void _Scheduler_Generic_block( const Scheduler_Control *scheduler, Thread_Control *the_thread, + Scheduler_Node *node, void ( *extract )( const Scheduler_Control *, - Thread_Control * ), + Thread_Control *, + Scheduler_Node * + ), void ( *schedule )( const Scheduler_Control *, Thread_Control *, - bool ) + bool + ) ) { - ( *extract )( scheduler, the_thread ); + ( *extract )( scheduler, the_thread, node ); /* TODO: flash critical section? */ |