[rtems commit] epiphany: Delete unused SMP functions

Sebastian Huber sebh at rtems.org
Thu Feb 18 05:06:30 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb 17 13:51:37 2016 +0100

epiphany: Delete unused SMP functions

---

 cpukit/score/cpu/epiphany/rtems/score/cpu.h | 119 ----------------------------
 1 file changed, 119 deletions(-)

diff --git a/cpukit/score/cpu/epiphany/rtems/score/cpu.h b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
index 24f9160..896af12 100644
--- a/cpukit/score/cpu/epiphany/rtems/score/cpu.h
+++ b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
@@ -997,125 +997,6 @@ static inline CPU_Counter_ticks _CPU_Counter_difference(
   return second - first;
 }
 
-#ifdef RTEMS_SMP
-  /**
-   * @brief Performs CPU specific SMP initialization in the context of the boot
-   * processor.
-   *
-   * This function is invoked on the boot processor during system
-   * initialization.  All interrupt stacks are allocated at this point in case
-   * the CPU port allocates the interrupt stacks.  This function is called
-   * before _CPU_SMP_Start_processor() or _CPU_SMP_Finalize_initialization() is
-   * used.
-   *
-   * @return The count of physically or virtually available processors.
-   * Depending on the configuration the application may use not all processors.
-   */
-  uint32_t _CPU_SMP_Initialize( void );
-
-  /**
-   * @brief Starts a processor specified by its index.
-   *
-   * This function is invoked on the boot processor during system
-   * initialization.
-   *
-   * This function will be called after _CPU_SMP_Initialize().
-   *
-   * @param[in] cpu_index The processor index.
-   *
-   * @retval true Successful operation.
-   * @retval false Unable to start this processor.
-   */
-  bool _CPU_SMP_Start_processor( uint32_t cpu_index );
-
-  /**
-   * @brief Performs final steps of CPU specific SMP initialization in the
-   * context of the boot processor.
-   *
-   * This function is invoked on the boot processor during system
-   * initialization.
-   *
-   * This function will be called after all processors requested by the
-   * application have been started.
-   *
-   * @param[in] cpu_count The minimum value of the count of processors
-   * requested by the application configuration and the count of physically or
-   * virtually available processors.
-   */
-  void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
-
-  /**
-   * @brief Returns the index of the current processor.
-   *
-   * An architecture specific method must be used to obtain the index of the
-   * current processor in the system.  The set of processor indices is the
-   * range of integers starting with zero up to the processor count minus one.
-   */
-   uint32_t _CPU_SMP_Get_current_processor( void );
-
-  /**
-   * @brief Sends an inter-processor interrupt to the specified target
-   * processor.
-   *
-   * This operation is undefined for target processor indices out of range.
-   *
-   * @param[in] target_processor_index The target processor index.
-   */
-  void _CPU_SMP_Send_interrupt( uint32_t target_processor_index );
-
-  /**
-   * @brief Broadcasts a processor event.
-   *
-   * Some architectures provide a low-level synchronization primitive for
-   * processors in a multi-processor environment.  Processors waiting for this
-   * event may go into a low-power state and stop generating system bus
-   * transactions.  This function must ensure that preceding store operations
-   * can be observed by other processors.
-   *
-   * @see _CPU_SMP_Processor_event_receive().
-   */
-  void _CPU_SMP_Processor_event_broadcast( void );
-
-  /**
-   * @brief Receives a processor event.
-   *
-   * This function will wait for the processor event and may wait forever if no
-   * such event arrives.
-   *
-   * @see _CPU_SMP_Processor_event_broadcast().
-   */
-  static inline void _CPU_SMP_Processor_event_receive( void )
-  {
-    __asm__ volatile ( "" : : : "memory" );
-  }
-
-  /**
-   * @brief Gets the is executing indicator of the thread context.
-   *
-   * @param[in] context The context.
-   */
-  static inline bool _CPU_Context_Get_is_executing(
-    const Context_Control *context
-  )
-  {
-    return context->is_executing;
-  }
-
-  /**
-   * @brief Sets the is executing indicator of the thread context.
-   *
-   * @param[in] context The context.
-   * @param[in] is_executing The new value for the is executing indicator.
-   */
-  static inline void _CPU_Context_Set_is_executing(
-    Context_Control *context,
-    bool is_executing
-  )
-  {
-    context->is_executing = is_executing;
-  }
-#endif /* RTEMS_SMP */
-
 #endif /* ASM */
 
 #ifdef __cplusplus



More information about the vc mailing list