diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-29 09:30:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 11:00:28 +0100 |
commit | fc64e837c3544c3462539237fec4e90726aa8727 (patch) | |
tree | b496ba1164e5d48e7b58115d8978182ae12ed116 /cpukit/include/rtems/score/threadimpl.h | |
parent | score: _Scheduler_SMP_Schedule_highest_ready() (diff) | |
download | rtems-fc64e837c3544c3462539237fec4e90726aa8727.tar.bz2 |
score: Rework ask for help requests
Process ask for help requests on the current processor. This avoids
using inter-processor interrupts to make the system behaviour a bit more
predictable.
Update #4531.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/threadimpl.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index a55524cfd1..931de2c6be 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -1494,32 +1494,6 @@ RTEMS_INLINE_ROUTINE bool _Thread_Owns_resources( } #endif -#if defined(RTEMS_SMP) -/** - * @brief Cancels the thread's need for help. - * - * @param the_thread The thread to cancel the help request of. - * @param cpu The cpu to get the lock context of in order to - * cancel the help request. - */ -RTEMS_INLINE_ROUTINE void _Thread_Scheduler_cancel_need_for_help( - Thread_Control *the_thread, - Per_CPU_Control *cpu -) -{ - ISR_lock_Context lock_context; - - _Per_CPU_Acquire( cpu, &lock_context ); - - if ( !_Chain_Is_node_off_chain( &the_thread->Scheduler.Help_node ) ) { - _Chain_Extract_unprotected( &the_thread->Scheduler.Help_node ); - _Chain_Set_off_chain( &the_thread->Scheduler.Help_node ); - } - - _Per_CPU_Release( cpu, &lock_context ); -} -#endif - /** * @brief Gets the home scheduler of the thread. * |