[rtems commit] score: Remove SMP message multicast/broadcast

Sebastian Huber sebh at rtems.org
Wed Jul 28 19:04:50 UTC 2021


Module:    rtems
Branch:    master
Commit:    70ec9bd44d46137d30229606bd34f571fe69cea7
Changeset: http://git.rtems.org/rtems/commit/?id=70ec9bd44d46137d30229606bd34f571fe69cea7

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 28 13:06:11 2021 +0200

score: Remove SMP message multicast/broadcast

Remove the unused _SMP_Send_message_multicast() and
_SMP_Send_message_broadcast().

---

 cpukit/include/rtems/score/smpimpl.h | 22 --------------------
 cpukit/score/src/smp.c               | 40 +-----------------------------------
 2 files changed, 1 insertion(+), 61 deletions(-)

diff --git a/cpukit/include/rtems/score/smpimpl.h b/cpukit/include/rtems/score/smpimpl.h
index eea48f5..6ead6aa 100644
--- a/cpukit/include/rtems/score/smpimpl.h
+++ b/cpukit/include/rtems/score/smpimpl.h
@@ -227,28 +227,6 @@ bool _SMP_Should_start_processor( uint32_t cpu_index );
  */
 void _SMP_Send_message( uint32_t cpu_index, unsigned long message );
 
-/**
- * @brief Sends an SMP message to all other online processors.
- *
- * @param message The message to send.
- */
-void _SMP_Send_message_broadcast(
-  unsigned long message
-);
-
-/**
- * @brief Sends an SMP message to a set of processors.
- *
- * The sending processor may be part of the set.
- *
- * @param targets The set of processors to send the message.
- * @param message The message to send.
- */
-void _SMP_Send_message_multicast(
-  const Processor_mask *targets,
-  unsigned long         message
-);
-
 typedef void ( *SMP_Action_handler )( void *arg );
 
 /**
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 2c37cd6..d778229 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -7,8 +7,7 @@
  *   and ::_SMP_Processor_maximum and the implementation of
  *   _SMP_Handler_initialize(),  _SMP_Process_message(),
  *   _SMP_Request_shutdown(), _SMP_Request_start_multitasking(),
- *   _SMP_Send_message(), _SMP_Send_message_broadcast(),
- *   _SMP_Send_message_multicast(), _SMP_Should_start_processor(),
+ *   _SMP_Send_message(), _SMP_Should_start_processor(),
  *   _SMP_Start_multitasking_on_secondary_processor(), and
  *   _SMP_Try_to_process_message().
  */
@@ -334,40 +333,3 @@ void _SMP_Send_message( uint32_t cpu_index, unsigned long message )
     _CPU_SMP_Send_interrupt( cpu_index );
   }
 }
-
-void _SMP_Send_message_broadcast( unsigned long message )
-{
-  uint32_t cpu_max;
-  uint32_t cpu_index_self;
-  uint32_t cpu_index;
-
-  _Assert( _Debug_Is_thread_dispatching_allowed() );
-  cpu_max = _SMP_Get_processor_maximum();
-  cpu_index_self = _SMP_Get_current_processor();
-
-  for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
-    if (
-      cpu_index != cpu_index_self
-        && _Processor_mask_Is_set( &_SMP_Online_processors, cpu_index )
-    ) {
-      _SMP_Send_message( cpu_index, message );
-    }
-  }
-}
-
-void _SMP_Send_message_multicast(
-  const Processor_mask *targets,
-  unsigned long         message
-)
-{
-  uint32_t cpu_max;
-  uint32_t cpu_index;
-
-  cpu_max = _SMP_Get_processor_maximum();
-
-  for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
-    if ( _Processor_mask_Is_set( targets, cpu_index ) ) {
-      _SMP_Send_message( cpu_index, message );
-    }
-  }
-}



More information about the vc mailing list