Changeset ac13ffd in rtems


Ignore:
Timestamp:
Feb 17, 2016, 12:51:37 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
42989d6
Parents:
2e71aa41
git-author:
Sebastian Huber <sebastian.huber@…> (02/17/16 12:51:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/18/16 05:06:09)
Message:

epiphany: Delete unused SMP functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/epiphany/rtems/score/cpu.h

    r2e71aa41 rac13ffd  
    998998}
    999999
    1000 #ifdef RTEMS_SMP
    1001   /**
    1002    * @brief Performs CPU specific SMP initialization in the context of the boot
    1003    * processor.
    1004    *
    1005    * This function is invoked on the boot processor during system
    1006    * initialization.  All interrupt stacks are allocated at this point in case
    1007    * the CPU port allocates the interrupt stacks.  This function is called
    1008    * before _CPU_SMP_Start_processor() or _CPU_SMP_Finalize_initialization() is
    1009    * used.
    1010    *
    1011    * @return The count of physically or virtually available processors.
    1012    * Depending on the configuration the application may use not all processors.
    1013    */
    1014   uint32_t _CPU_SMP_Initialize( void );
    1015 
    1016   /**
    1017    * @brief Starts a processor specified by its index.
    1018    *
    1019    * This function is invoked on the boot processor during system
    1020    * initialization.
    1021    *
    1022    * This function will be called after _CPU_SMP_Initialize().
    1023    *
    1024    * @param[in] cpu_index The processor index.
    1025    *
    1026    * @retval true Successful operation.
    1027    * @retval false Unable to start this processor.
    1028    */
    1029   bool _CPU_SMP_Start_processor( uint32_t cpu_index );
    1030 
    1031   /**
    1032    * @brief Performs final steps of CPU specific SMP initialization in the
    1033    * context of the boot processor.
    1034    *
    1035    * This function is invoked on the boot processor during system
    1036    * initialization.
    1037    *
    1038    * This function will be called after all processors requested by the
    1039    * application have been started.
    1040    *
    1041    * @param[in] cpu_count The minimum value of the count of processors
    1042    * requested by the application configuration and the count of physically or
    1043    * virtually available processors.
    1044    */
    1045   void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
    1046 
    1047   /**
    1048    * @brief Returns the index of the current processor.
    1049    *
    1050    * An architecture specific method must be used to obtain the index of the
    1051    * current processor in the system.  The set of processor indices is the
    1052    * range of integers starting with zero up to the processor count minus one.
    1053    */
    1054    uint32_t _CPU_SMP_Get_current_processor( void );
    1055 
    1056   /**
    1057    * @brief Sends an inter-processor interrupt to the specified target
    1058    * processor.
    1059    *
    1060    * This operation is undefined for target processor indices out of range.
    1061    *
    1062    * @param[in] target_processor_index The target processor index.
    1063    */
    1064   void _CPU_SMP_Send_interrupt( uint32_t target_processor_index );
    1065 
    1066   /**
    1067    * @brief Broadcasts a processor event.
    1068    *
    1069    * Some architectures provide a low-level synchronization primitive for
    1070    * processors in a multi-processor environment.  Processors waiting for this
    1071    * event may go into a low-power state and stop generating system bus
    1072    * transactions.  This function must ensure that preceding store operations
    1073    * can be observed by other processors.
    1074    *
    1075    * @see _CPU_SMP_Processor_event_receive().
    1076    */
    1077   void _CPU_SMP_Processor_event_broadcast( void );
    1078 
    1079   /**
    1080    * @brief Receives a processor event.
    1081    *
    1082    * This function will wait for the processor event and may wait forever if no
    1083    * such event arrives.
    1084    *
    1085    * @see _CPU_SMP_Processor_event_broadcast().
    1086    */
    1087   static inline void _CPU_SMP_Processor_event_receive( void )
    1088   {
    1089     __asm__ volatile ( "" : : : "memory" );
    1090   }
    1091 
    1092   /**
    1093    * @brief Gets the is executing indicator of the thread context.
    1094    *
    1095    * @param[in] context The context.
    1096    */
    1097   static inline bool _CPU_Context_Get_is_executing(
    1098     const Context_Control *context
    1099   )
    1100   {
    1101     return context->is_executing;
    1102   }
    1103 
    1104   /**
    1105    * @brief Sets the is executing indicator of the thread context.
    1106    *
    1107    * @param[in] context The context.
    1108    * @param[in] is_executing The new value for the is executing indicator.
    1109    */
    1110   static inline void _CPU_Context_Set_is_executing(
    1111     Context_Control *context,
    1112     bool is_executing
    1113   )
    1114   {
    1115     context->is_executing = is_executing;
    1116   }
    1117 #endif /* RTEMS_SMP */
    1118 
    11191000#endif /* ASM */
    11201001
Note: See TracChangeset for help on using the changeset viewer.