Skip to content
Snippets Groups Projects
Commit 6d90f24a authored by Erik von Reis's avatar Erik von Reis
Browse files

Merge branch 'new_cpu_isolator_symbols_deb10' into demod_parts_v5

parents ecfeada6 b24e8224
No related branches found
No related tags found
2 merge requests!439RCG 5.0 release fro deb 10,!409RCG: avx demod parts added
...@@ -13,15 +13,7 @@ ...@@ -13,15 +13,7 @@
typedef void (*play_dead_handler_fp_t)( void ); typedef void (*play_dead_handler_fp_t)( void );
///
/// @brief This utility function is used to check if a module
/// has already used this interface to isolate the given CPU.
///
/// @param cpu The CPU number the caller is checking (0 indexed)
///
/// @return 0 if the core has been taken, >0 if it is free
///
extern int is_cpu_occupied( unsigned int cpu );
/// @deprecated /// @deprecated
/// @brief Proxy function for the is_cpu_occupied() function above. /// @brief Proxy function for the is_cpu_occupied() function above.
...@@ -33,18 +25,6 @@ extern int is_cpu_occupied( unsigned int cpu ); ...@@ -33,18 +25,6 @@ extern int is_cpu_occupied( unsigned int cpu );
/// ///
extern int is_cpu_taken_by_rcg_model( unsigned int cpu ); extern int is_cpu_taken_by_rcg_model( unsigned int cpu );
///
/// @brief This function is used to set the function that is
/// called when the "real-time" execution is started.
/// It must be set before calling rts_isolator_exec()
///
/// @param rt_runner_func A function pointer to the "real-time" code
/// you would like to run
///
/// @param cpu The CPU number to isolate the code on (0 indexed)
///
extern void set_rt_callback( play_dead_handler_fp_t rt_runner_func, unsigned int cpu );
/// @deprecated /// @deprecated
/// @brief Proxy function for the set_rt_callback() function above. /// @brief Proxy function for the set_rt_callback() function above.
/// This function is retained for compatibility with legacy code. /// This function is retained for compatibility with legacy code.
...@@ -73,6 +53,28 @@ static inline void set_rt_callback( play_dead_handler_fp_t rt_runner_func, unsig ...@@ -73,6 +53,28 @@ static inline void set_rt_callback( play_dead_handler_fp_t rt_runner_func, unsig
#else //This is 5.10.0 and newer, caller interface is the same between versions #else //This is 5.10.0 and newer, caller interface is the same between versions
static inline int rts_isolator_exec( unsigned int CPU_ID ){ return remove_cpu(CPU_ID); } static inline int rts_isolator_exec( unsigned int CPU_ID ){ return remove_cpu(CPU_ID); }
static inline int rts_isolator_cleanup( unsigned int CPU_ID ){ return add_cpu(CPU_ID); } static inline int rts_isolator_cleanup( unsigned int CPU_ID ){ return add_cpu(CPU_ID); }
///
/// @brief This utility function is used to check if a module
/// has already used this interface to isolate the given CPU.
///
/// @param cpu The CPU number the caller is checking (0 indexed)
///
/// @return 0 if the core has been taken, >0 if it is free
///
extern int is_cpu_occupied( unsigned int cpu );
///
/// @brief This function is used to set the function that is
/// called when the "real-time" execution is started.
/// It must be set before calling rts_isolator_exec()
///
/// @param rt_runner_func A function pointer to the "real-time" code
/// you would like to run
///
/// @param cpu The CPU number to isolate the code on (0 indexed)
///
extern void set_rt_callback( play_dead_handler_fp_t rt_runner_func, unsigned int cpu );
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment