Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
b24e8224
Commit
b24e8224
authored
2 years ago
by
Erik von Reis
Browse files
Options
Downloads
Patches
Plain Diff
Move external defs for new isolator symbols to only exist for kernel >= 5
parent
601b565f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!439
RCG 5.0 release fro deb 10
,
!400
New cpu isolator symbols deb10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/drv/rts-cpu-isolator/rts-cpu-isolator.h
+23
-21
23 additions, 21 deletions
src/drv/rts-cpu-isolator/rts-cpu-isolator.h
with
23 additions
and
21 deletions
src/drv/rts-cpu-isolator/rts-cpu-isolator.h
+
23
−
21
View file @
b24e8224
...
...
@@ -13,15 +13,7 @@
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
/// @brief Proxy function for the is_cpu_occupied() function above.
...
...
@@ -33,18 +25,6 @@ extern int is_cpu_occupied( 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
/// @brief Proxy function for the set_rt_callback() function above.
/// 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
#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_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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment