diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-18 07:08:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-20 08:49:39 +0200 |
commit | 3b2481f9a7c7e9926b221acdca3678d80c6c9ec7 (patch) | |
tree | 4eb078ca678b46c6d92c0d3e0a79b490ab7c0b78 /cpukit/include/rtems/score/smpimpl.h | |
parent | score: Add _SMP_Othercast_action() (diff) | |
download | rtems-3b2481f9a7c7e9926b221acdca3678d80c6c9ec7.tar.bz2 |
score: Simplify _SMP_Multicast_action()
Move resposibility to disable thread dispatching to the caller of
_SMP_Multicast_action(). Using an interrupt disable for this purpose is
questionable.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/smpimpl.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/include/rtems/score/smpimpl.h b/cpukit/include/rtems/score/smpimpl.h index 452f39a3b5..ecea1fda43 100644 --- a/cpukit/include/rtems/score/smpimpl.h +++ b/cpukit/include/rtems/score/smpimpl.h @@ -255,9 +255,11 @@ typedef void ( *SMP_Action_handler )( void *arg ); /** * @brief Initiates an SMP multicast action to the set of target processors. * - * The current processor may be part of the set. In case a target processor is - * in a wrong state to process per-processor jobs, then this function results - * in an SMP_FATAL_WRONG_CPU_STATE_TO_PERFORM_JOBS fatal SMP error. + * The current processor may be part of the set. The caller must ensure that + * no thread dispatch can happen during the call of this function, otherwise + * the behaviour is undefined. In case a target processor is in a wrong state + * to process per-processor jobs, then this function results in an + * SMP_FATAL_WRONG_CPU_STATE_TO_PERFORM_JOBS fatal SMP error. * * @param targets The set of target processors for the action. * @param handler The multicast action handler. |